main element
The HTML element that wraps the dominant, unique content of a page, used once per page and exposed as the main landmark.
In more detail
It must not be placed inside header, nav, article, aside or footer elements. Screen reader users can jump straight to main, skipping headers and navigation that repeat on every page.
Related terms
- landmark — A region of a page, such as navigation, main content or footer, that assistive technology users can jump between.
- semantic HTML — Using HTML elements for their meaning, such as <button> for actions and <nav> for navigation, rather than generic <div>s.
Taught in
- Semantic HTML Elements: Landmarks And Structure — Frontend Architecture & Web Platform