Name
head — <head> . . . </head>
Defines the head (also called the “header”) portion of the
document that contains information about the document that is not
considered document content. Every head
element must include a title
element that provides a
description of the document. The head
element may also include any of
these elements in any order: script
, style
, meta
, link
, object
, isindex
, and base
. The head
element merely acts as a container
of these elements and does not have any content of its own.
Attributes
Internationalization
id="
text
"
XHTML only. Assigns a unique identifying name to the element.
profile="
URLs
"
Provides the location of one or more predefined metadata profiles separated by whitespace that are used to define properties and values that can be referenced by meta elements in the head of the document,
rel
andrev
attributes, and class names. This attribute is not yet implemented by browsers.
Example
<!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="en" lang="en"><head>
<title>Document Title</title></head>
<body> <p>Content of document . . . </p> </body> </html>
Get HTML and XHTML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.