English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <html> Tag

HTML: <html> - Tag ist der Container für alle anderen HTML-Elemente. Dieses Tag wird auch oft als <html> - Element bezeichnet.

Online-Beispiel

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.

Browserkompatibilität

IEFirefoxOperaChromeSafari

Alle gängigen Browser unterstützen den <html> - Tag.

Definition und Verwendungshinweise

<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.

HTML 4.01 With HTML5Differences

HTML5 Among them, a new attribute: manifest has been added.

Differences between HTML and XHTML

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.

Attribute

New: HTML5 new attribute.

AttributeValueDescription
manifestHTML5URLSpecifies a URL where the cache information of the document is described.
xmlnshttp://www.w3.org/1999/xhtmlHTML does not support. Only XHTML supports. Specifies the XML namespace attribute (use this attribute if you need your content to be compliant with XHTML).

Global Attributes

<html> Tag Supported HTML's Global Attributes.