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 meta elements in the head section of the document, by rel and rev attributes 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>

 

> back to the alphabetical list of elements

   

 

 

 

back to top