The best HTML <html> tag Tutorial In 2024, In this tutorial you can learn Examples,Browser Support,Tag definitions and instructions,Differences between HTML 4.01 and HTML5,Differences between HTML and XHTML,Attributes,Global Properties,
Simple HTML5 document:
All major browsers support the <html> tag.
<Html> tag tells the browser that this is an HTML document.
<Html> tag is an HTML document outermost element.
<html> tag all other HTML elements (except <! DOCTYPE> tag) containers.
HTML5, add a new property: manifest.
xmlns attribute is required in XHTML but not in HTML.
However, even if the XHTML document <html> not use the xmlns attribute, HTML validator on the W3C is not being given. This is because "xmlns = http: //www.w3.org/1999/xhtml" is a fixed value, even if you do not include it, the value will be added to the <html> tag.
New: HTML5 new property.
属性 | 值 | 描述 |
---|---|---|
manifest New | URL | 定义一个 URL,在这个 URL 上描述了文档的缓存信息。 |
xmlns | http://www.w3.org/1999/xhtml | HTML 不支持。只有 XHTML 支持。 规定 XML 的 namespace 属性(如果您需要您的内容符合 XHTML,则使用这个属性。)。 |
<html> tag supports HTML global properties .