XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / head
(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
head
HTML 4.01 | HTML 5 |
<head> ... </head>
Marks the head of a document, containing information about the document itself. Every head element must contain a title element describing the document’s content. It can also contain one or more of the following elements, in any number and order: base, link, meta, noscript, script, style, object (HTML 4.01 only) and command (HTML 5 only). The head element only acts as a container for these elements and has no text content of its own.
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.
profile="URLs"Not available in HTML 5. Specifies the location of one or more space-separated metadata profiles defining properties and values that can be used by
metaelements in theheadsection of the document, byrelandrevattributes and by class names (class). This attribute is not widely supported.
Example
<!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>
<style type="text/css">h1 {color: #333;}</style>
</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