A navigational aid that provides an ordered list of links to the major sectional headings in the content. A table of contents may cover an entire work, or only a smaller section of it.


Example 1 — Table of contents with a heading

The label is identified in the aria-labelledby attribute.

<nav role="doc-toc">
   <h2 id="hd05">Contents</h2>
      <li><a href="chapter01.html">Chapter 1</a></li>

Relation to ARIA

doc-toc is a landmark role.


doc-toc is typically used on nav elements.

A label must be provided for the role using one of the aria-labelledby, aria-label or title attributes.

For a simplified list of all the elements the role is allowed on, refer to the mapping table in the EPUB Type to ARIA Role Authoring Guide. For the official list of allowed elements, refer to ARIA in HTML.

Related Links