Webflow fix

Before and after

Broken — before
<!-- Broken Webflow page structure: all sections rendered as plain <div>s -->
<div class="navbar w-nav">...</div>
<div class="hero-section">...</div>
<div class="features-section">...</div>
<div class="footer-section">...</div>
Fixed — after
<!-- Fixed Webflow semantic structure (Element Settings -> Tag: Header, Main, Footer) -->
<a href="#main-content" class="skip-link">Skip to main content</a>
<header class="navbar w-nav">...</header>
<main id="main-content" tabindex="-1" class="main-wrapper">
  <section class="hero-section">...</section>
  <section class="features-section">...</section>
</main>
<footer class="footer-section">...</footer>
Live preview

Fixed vs. broken example

Passes landmark-one-main
Accessibility tree: Landmarks list: banner (<header>), main (<main id="main-content">)

Pair your single <main id="main-content" tabindex="-1"> landmark with a visible-on-focus "Skip to main content" link at the top of <body>.

Automated test

Playwright + axe-core check

tests/a11y-landmark-one-main.spec.ts
import { test, expect } from "@playwright/test";
import AxeBuilder from "@axe-core/playwright";

test("Webflow pages expose a single <main> landmark", async ({ page }) => {
  await page.goto("/");
  await expect(page.getByRole("main")).toHaveCount(1);
  const results = await new AxeBuilder({ page })
    .withRules(["landmark-one-main"])
    .analyze();
  expect(results.violations).toEqual([]);
});

Template deduplication tip

Adding a <main> wrapper to your Webflow Page Template and CMS Collection Page Templates fixes landmark-one-main across every published blog post, portfolio item, and landing page.

Screen readers

What NVDA and VoiceOver announce

Keyboard and screen-reader users rely on the <main> landmark (and Skip-to-Content links targeting it) to bypass 30+ repeating header, mega-menu, and announcement links on every page navigation.

NVDA (Windows)

Broken

Pressing D (next landmark) announces: "no next landmark"


Fixed

Pressing D jumps straight past navigation and announces: "main landmark"

VoiceOver (macOS / iOS)

Broken

Landmarks rotor shows no Main region; user must step through every header link.


Fixed

Landmarks rotor lists "main", letting the user jump directly to primary content.

Common questions

How do I change a Div Block to <main> in Webflow Designer?
Wrap all primary page sections inside one parent Div Block (e.g., class main-wrapper), open the Settings panel (D), change the HTML Tag dropdown from Div to Main, and assign ID main-content.
Can a Webflow Component contain a <main> tag?
Avoid placing <main> inside reusable section Components so editors don't accidentally drop two <main> tags on the same page; keep <main> once at the page wrapper level.
What semantic tags should Webflow navbars and footers use?
Set the top navigation Component wrapper to <header> (containing Webflow's <nav> menu) and the site footer Component wrapper to <footer>.