ARIA main Role
The main role marks the main content of a page, the part that is unique to that page. The main element has this role, and a page should only have one.
Description
The main role identifies the main content of a document: the content that relates directly to the page's purpose, as opposed to headers, footers, navigation and sidebars that are repeated across pages. It is a landmark. Landmarks let screen reader users list the main areas of a page and jump straight to one of them.
The <main> element has this role, so you only need role="main" on old markup. A page should have only one visible main landmark, and it should not be nested inside another landmark.
A "Skip to main content" link at the top of the page that targets the main element is still useful for sighted keyboard users, who can't use screen reader landmark navigation.
Use the native HTML <main> element where you can: it already has the main role, with the expected keyboard and browser behavior built in.
Properties
- Category
- Landmark
- HTML equivalent
<main>- Accessible name from
- author
- Required parent role
- None
- Required child roles
- None
ARIA Attributes
- Required
- None
- Supported
- None
- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="main">
Example
Browser Support
The following information will show you the current browser support for the main ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





