English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML: <html> tag is the container for all other HTML elements. This tag is also commonly referred to as the <html> element.
Simple HTML5 Document:
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>HTML5 Usage of <html> tag (Basic Tutorial Website oldtoolbag.com)</title>/title> </head> <body> <h1>Heading</h1> <p>This is the content.</p>/p> </body> </html>Test to see ‹/›
In this HTML5In the document example, the first line has the <!DOCTYPE> tag, which is not included within the <html> tag.
Next is the <html> tag, which is the container for the other HTML tags. The <html> tag contains2parts-<head> tag and <body> tag. <head> tag contains <meta> tag and <title> tag. <body> tag contains <h1> tag and <p> tag.
IEFirefoxOperaChromeSafari
All major browsers support the <html> tag.
<html> tag informs the browser that this is an HTML document.
<html> tag is the outermost element in an HTML document.
<html> tag is the container for all other HTML elements (except <!DOCTYPE> tag) container.
HTML5 In, a new attribute has been added: manifest.
The xmlns attribute is required in XHTML but not in HTML.
However, even if the <html> in the XHTML document does not use the xmlns attribute, W3The HTML validator on C will not report an error. This is because "xmlns=http://www.w3.org/1999/"xhtml" is a fixed value, even if you do not include it, this value will be added to the <html> tag.
New: HTML5 new attributes.
Attribute | Value | Description |
---|---|---|
manifestHTML5 | URL | Defines a URL where the cache information of the document is described. |
xmlns | http://www.w3.org/1999/xhtml | HTML does not support. Only XHTML supports. Specifies the XML namespace attribute (use this attribute if you need your content to be valid XHTML). |
The <html> tag supports Global attributes of HTML.