Adding custom headers and footers
You add a custom header to include a publication title, company logo, or other common branding elements in HTML output. A custom footer can also be added with copyright information, legal boilerplate, or other fine print.
About this task
In HTML5 output, the contents of the header file will be wrapped in an HTML5 <header>
element with the @role
attribute set to banner. The footer file contents are
wrapped in an HTML5 <footer>
element with the @role
attribute set to
contentinfo.
For example, the DITA-OT documentation includes a simple header banner with the publication title and a horizontal rule to separate the header from the generated topic content:
<div class="header">
<p>DITA Open Toolkit</p>
<hr/>
</div>
<div>
element.