Favorites

ARIA main Role

main
ARIA Landmark RoleThis ARIA role is supported by all modern browsers.
Updated 28th November 2026

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.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

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

<a href="#content">Skip to main content</a>
<header>Site header</header>
<main id="content">
<h1>About us</h1>
<p>We make tools for web designers.</p>
</main>

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.

This ARIA role is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee