7.9. Element head
Specifies the content of the html:head element of an output HTML
page.
By default, this html:head element is simply a copy
of the html:head element found in the content “pulled” using
the href attribute of a book division. But when a
head child element of a book division is specified,
- Its
titlechild element is used to specify thehtml:titleof the output HTML page. - All its other child elements and also all its XHTML5 global attributes are copied to the
html:headof the output HTML page.
Content model
(title? , (html:base | html:link | html:meta | html:script | html:style | html:template)*)
Attributes
| Name | Data type | Default value |
|---|---|---|
override |
boolean |
Specified by attribute
headoverridedefault of element
book. |
xml:base |
anyURI |
|
xml:id |
ID |
|
xml:lang |
language or "" (the empty string) |
. |
Other attributes: XHTML5 global attributes, including any attribute having
a name starting with "data-".
override- When set to
true, the child elements and XHTML5 global attributes found in theheadelement completely replace the child elements and XHTML5 global attributes found in thehtml:headelement of an input HTML page.When set to
false, the child elements and XHTML5 global attributes found in theheadelement are merged with the child elements and XHTML5 global attributes found in thehtml:headelement of an input HTML page.
Parents
The following elements contain head:
appendices, appendix, book, chapter, part, section.
Children
The
following elements occur in head: html:base, html:link, html:meta, html:script, html:style, html:template, title.
Example
Element
head is most often used to give a “rich” title to a book
division.
1 2 3 4 5 6 7 8 9 10 11 12 13 | <appendix href="ssh_key.html"> <head> <title>Generating Your <html:b>SSH</html:b> Public Key</title> <html:style> .error { font-weight: bold; font-style: italic; color: #800000; } </html:style> </head> </appendix> |