Referred HTML Tags
Essential A11y Requirements
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").
<main> element is unique on the document and has explicit semantics, it does not require an accessible name.