7.10. Element headcommon

Specifies some common content for the html:head elements of all the output HTML pages.

Note that the XHTML5 global attributes found on element headcommon are also copied to the html:head elements of all the output HTML pages.

Content model

(html:base | html:link | html:meta | html:script | html:style | 
 html:template)*

Attributes

Name Data type Default value
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-".

Parents

The following elements contain headcommon: book.

Children

The following elements occur in headcommon: html:base, html:link, html:meta, html:script, html:style, html:template.

Example

Element headcommon is typically used to give a common CSS stylesheet to all the output HTML pages.

1
2
3
4
5
6
7
8
9
<book>
  <headcommon>
    <html:link href="../resources/styles.css" rel="stylesheet"
               type="text/css"/>
    <html:link href="../resources/bullets/" rel="resource"
               type="inode/directory"/>
  </headcommon>
  ...
</book>