Main

Referred HTML Tags

<main>

Essential A11y Requirements

Context

As its name implies, the <main> element represents the primary area of content in the document; therefore, it should be at the document level (e.g., it should not be a child element of another landmark element). It must also be unique in the document, with the exception of nesting documents, e.g., <iframe>, where each of the <main> elements is in the context of a different document. The semantics of the <main> element often make it the preferred choice to serve as an anchor for skip links (e.g., "Skip to main content").

Accessible name

Since the <main> element is unique on the document and has explicit semantics, it does not require an accessible name.

Equivalent WAI-ARIA Role

role=”main”