Skip to main content

<hd>


  • Date:
    17/08/2022
  • Modified:
    20/08/2026
  • Category:
    Elements

The <hd> element defines the title of page, chapter, part etc. Not to be confused with title.

Attributes

NameExplanationRequired
level

Defines how deep the header is nested in the content. Only use for headings that follow a new section. The level must be equal to the level of the section.

For floating headings, do not use this level attribute. See Sectioning.

No
number

Defines the number of the part, chapter or subchapter.

No
label

Defines the semantic type of a heading when the text itself does not include an explicit heading term. In such cases, add a label attribute with the appropriate value (e.g., label="chapter") to the <hd> element.

Possible values include:

  • part
  • chapter
  • subChapter. Only use for subchapters that have explicit numbering, like ‘1.1 Romans’. Do not use on unnumbered subchapters like ‘Introduction’.

If the text already contains an explicit heading term (such as “Chapter”, “Hoofdstuk”, “Kapittel”, etc.), do not use the label attribute.

No

Examples

Chapter heading

If a chapter is numbered, include the number both in the number attribute and the text node.
<section level="1" role="chapter">
  <pagebreak id="pb-78">78</pagebreak>
  <hd level="1" number="2" label="chapter">2 Organen en cellen</hd>

Heading with special character

If a heading contains a paragaph symbol, exclude the symbol from the number attribute. Only include it in the text node.
<section level="1" role="chapter">
  <pagebreak id="pb-13">13</pagebreak>
  <hd level="1">HOOFDSTUK 1: DE SAMENLEVING EN HET INDIVIDU</hd>
  <figure>
    <img alt="" role="informative" src="/img/30261_p013-1.jpg" type="photo"/>
  </figure>
  <section level="2" role="subChapter">
    <hd level="2" number="1.1">§ 1.1 IDENTITEIT</hd>

Heading that consists of multiple text parts

<section level="1" role="chapter">
<hd level="1" number="3">Basis 3 De Verlichting</hd>

Heading that follows a new section

<section level="2" role="subChapter">
<hd level="2">Introductie</hd>

Floating heading without a level attribute

<frame>..</frame>
<hd>Voorkennis</hd>

  • Date:
    17/08/2022
  • Modified:
    20/08/2026
  • Category: