XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / html
(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
html
HTML 4.01 | HTML 5 |
<html> ... </html>
This is the root element of HTML and XHTML documents: it encloses all other elements. The html element therefore has no ancestor elements. The opening html tag appears at the beginning of the document, immediately after the document type declaration. The closing tag appears at the end of the document. If an HTML document uses no html tags, html is still assumed as the implicit root element.
Start/end tag
HTML: Optional/Optional; XHTML: Required/Required
Attributes
Internationalization, global HTML 5 attributes
id="Text"XHTML and HTML 5 only. Assigns a unique identifier to the element.
manifest="URL"HTML 5 only. Refers to a cache to be used with an offline web application’s API.
version="-//W3C//DTD HTML 4.01//EN"Deprecated in HTML 4.01. Not in HTML 5. In HTML, the value of
versionis a so-called Formal Public Identifier (FPI) identifying the HTML version used by the document; the value above represents HTML 4.01. In HTML 4.01, theversionattribute is deprecated because it duplicates information in the DOCTPYE declaration. XHTML 1.0 has no value defined forversion.xmlns="http://www.w3.org/1999/xhtml"Required only for XHTML. In XHTML documents, declares the XML namespace.
Example (HTML)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/HTML4.01/strict.dtd">
<html>
<head>
<title>Titel des Dokuments</title>
</head>
<body>
<p>Inhalt des Dokuments ... </p>
</body>
</html>Example (XHTML)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"lang="de">
<head>
<title>Titel des Dokuments</title>
</head>
<body>
<p>Inhalt des Dokuments ... </p>
</body>
</html>
|
Copyright © 2010 O’Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from "HTML & XHTML ─ kurz & gut" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de