7.8. Element frontmatter7.9. Element head (37/59)7.10. Element headcommon

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,

  1. Its title child element is used to specify the html:title of the output HTML page.
  2. All its other child elements and also all its XHTML5 global attributes are copied to the html:head of 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 the head element completely replace the child elements and XHTML5 global attributes found in the html:head element of an input HTML page.

When set to false, the child elements and XHTML5 global attributes found in the head element are merged with the child elements and XHTML5 global attributes found in the html:head element 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>
See also
  • Section 7.10. Element headcommon
7.8. Element frontmatter7.9. Element head (37/59)7.10. Element headcommon