Skip to main content

Hn

Description

A generic heading element used when a specific heading level (such as H1–H6) is not applicable, often role-mapped to standard headings.

Namespace
2.0
Category
block

Differences

Well tagged PDF:

The 'Hn' element in Well-Tagged PDF is used as a generic heading element where 'n' represents the level. It provides a flexible mechanism to denote hierarchical headings without being restricted to fixed levels.

For Well-Tagged PDF, 'Hn' should be used with a clear level indicator, ensuring that the document’s structure tree correctly reflects the hierarchy of content. The level number should accurately represent the logical importance and nesting of the heading.


PDFUA:

In PDF/UA, headings are critical for navigation by assistive technologies. 'Hn' is used to indicate headings at various levels, helping to establish the document’s outline and reading order.

PDF/UA requires that each heading tagged with 'Hn' is assigned a level that reflects its position in the hierarchy, and that it is accompanied by associated text (such as a title) that clearly describes the section. This ensures that screen readers can effectively navigate and announce the heading structure.

Use cases

Heading with stylistic changes that are encoded with Span

Try it

Sample hierarchy for a weekend weather report

Try it

Headings used with Aside element

Try it

Tag Relationships

Related Matterhorn Protocol checkpoints