Pages should have only one visible <main> landmark; multiple <main> elements cause confusion for assistive technologies.
By Seoxpert Editorial · Published
Screen readers rely on a single <main> landmark to help users quickly access the primary content. Multiple <main> elements can mislead assistive technology, causing users to miss or struggle to find the actual main content. This can hurt accessibility and user experience, especially for those relying on keyboard navigation.
Leaving multiple <main> elements can confuse screen reader users and degrade accessibility compliance.
An automated crawler parses the HTML and flags pages containing more than one visible <main> element.
Incorrect: Multiple <main> elements
<main>
<h1>Sidebar</h1>
<!-- Sidebar content -->
</main>
<main>
<h1>Main Content</h1>
<!-- Primary page content -->
</main>Correct: Only one <main>, sidebar as <section>
<section aria-label="Sidebar">
<h1>Sidebar</h1>
<!-- Sidebar content -->
</section>
<main>
<h1>Main Content</h1>
<!-- Primary page content -->
</main>No, HTML5 allows only one visible <main> landmark per page. Use <section> or <div> for other areas.
Check your layout and page templates to ensure only one <main> is rendered. Remove or replace extras with <section> or <div>.
While not a direct ranking factor, poor accessibility can impact user experience and may indirectly affect SEO.
Screen readers typically jump to the first <main> element, which may not be the actual main content, confusing users.
Run a scan to see if Pages with Multiple `<main>` Landmarks affects your pages.
Scan my website →