English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML: <html> - Tag ist der Container für alle anderen HTML-Elemente. Dieses Tag wird auch oft als <html> - Element bezeichnet.
Einfaches HTML5 Dokument:
!doctype html> <html> <head> <meta charset="UTF-8"> <title>HTML5 Verwendung des <html> - Tags (Grundtutorials-Web oldtoolbag.com)</title> </head> <body> <h1>Überschrift</h1> <p>This is the content.</p> </body> </html>Testen Sie, um zu sehen ‹/›
In diesem HTML5Im Dokumentbeispiel befindet sich auf der ersten Zeile der <!DOCTYPE> - Tag, der nicht im <html> - Tag enthalten ist.
Der nächste ist der <html> - Tag, der der Container für die anderen HTML-Tags ist. Der <html> - Tag enthält2Teile-<head> - Tag und <body> - Tag. <head> - Tag enthält <meta> - Tag und <title> - Tag. <body> - Tag enthält <h1> - Tag und <p> - Tag.
IEFirefoxOperaChromeSafari
Alle gängigen Browser unterstützen den <html> - Tag.
<html> - Tag informiert den Browser, dass dies ein HTML-Dokument ist.
<html> - Tag ist das äußereste Element eines HTML-Dokuments.
<html> - Tag ist der Container für alle anderen HTML-Elemente (außer <!DOCTYPE> Tag) container.
HTML5 Among them, a new attribute: manifest has been added.
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 attribute.
Attribute | Value | Description |
---|---|---|
manifestHTML5 | URL | Specifies 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 compliant with XHTML). |
<html> Tag Supported HTML's Global Attributes.