Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the lt;html> tag in HTML

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to use tags in HTML. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Example

Simple HTML5 document:

Document title

The contents of the document.

HTML tag

Browser support

HTML tag

HTML tag

HTML tag

HTML tag

HTML tag

All major browsers support tags.

HTML tag

Label definition and instructions for use

The tag informs the browser that this is an HTML document.

Tags are the outermost elements in an HTML document.

Tags are containers for all other HTML elements (except tags).

Differences between HTML 4.01 and HTML5

In HTML5, a new attribute has been added: manifest.

The difference between HTML and XHTML

The xmlns attribute is required in XHTML, but not in HTML.

However, even if the xmlns attribute is not used in the XHTML document, the HTML validator on the W3C will not report an error. This is because "xmlns= http://www.w3.org/1999/xhtml" is a fixed value, which is added to the tag even if you do not include it."

Attribute

New: a new attribute in HTML5.

The attribute value description manifestNewURL defines a URL on which the document's cache information is described. Xmlns http://www.w3.org/1999/xhtmlHTML does not support it. Only XHTML supports it. Specify the namespace attribute of the XML (use this attribute if you need your content to conform to XHTML. ).

HTML tag

Global attribute

Tags support the global properties of HTML.

This is the end of this article on "how to use tags in HTML". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report