HTML: The Markup Language

headdocument metadata container # T

The head element collects the document’s metadata.

Permitted contents #

one title element, intermixed with an optional base element, intermixed with metadata elements

Permitted attributes #

global attributes
Any attributes permitted globally.

Additional constraints and admonitions #

Tag omission #

A head element’s start tag may be omitted if the first thing inside the head element is an element.

A head element’s end tag may be omitted if the head element is not immediately followed by a space character or a comment.

Permitted parent elements #


DOM interface #

interface HTMLHeadElement : HTMLElement {};

Typical default display properties #

head {
display: none; }