HTML Semantic Outline and Landmark Checker
Check the heading tree and ARIA landmarks of any page source: h1 to h6 levels, banner, nav, main and footer regions, labels, title and lang.
S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho
…
Com es fa
- 1Paste the HTML
Paste page source or copy outerHTML from DevTools for JavaScript pages.
- 2Review the outline
Read the heading tree and look for skip badges and empty headings.
- 3Check landmarks
Switch to Landmarks and confirm main, nav, banner and footer are present.
- 4Open each issue
Click an issue to highlight its line in the Source tab.
- 5Fix and re-paste
Correct your template and paste again to confirm the issue is gone.
- 6Export
Download the outline as Markdown or the full report as text.
Sobre aquesta eina
Screen reader users rarely read a page from top to bottom. They jump: from heading to heading, or from one landmark region to the next, to get an overview and find the part they want. That only works when the page structure is real. Headings must form a sensible tree, with one main heading and no jumps from h2 straight to h4, and the main areas of the page must be marked as landmarks: a header for the banner, nav for menus, main for the content, aside for related material and footer for the site information. Visual design often hides structural problems, because a div styled as a heading looks exactly like an h2. This checker parses pasted HTML without loading the page, draws the heading outline and the landmark tree side by side, and lists every structural problem with a concrete fix. Click any heading, landmark or issue to jump to the matching line of your source.
Heading outline
Every h1 to h6 and every element with role=heading is shown indented by its level. The text is the accessible name, so an image with alt text inside a heading counts and hidden text does not. A badge marks headings that skip levels, empty headings are shown in red, and the counters show how many headings of each level the page uses. Download the outline as a Markdown list for a content audit or a ticket.
Landmarks
Landmarks come from both HTML elements and ARIA roles. A header or footer only counts as banner or contentinfo when it is not inside article, aside, main, nav or section, which is why some of yours may not appear. A section or form becomes a region or form landmark only when it has a name from aria-label or aria-labelledby. The tree is indented by nesting so you can see, for example, a nav inside the banner.
Checks
The checker reports a missing or duplicated main, main nested in another landmark, more than one top-level banner or contentinfo, several navigation, complementary or region landmarks without labels or with the same label, labels that repeat the role word, no h1 or several h1 headings, a first heading lower than h1, missing title and lang on full pages, and text blocks that sit outside every landmark. Each finding has a level: errors break navigation, warnings are likely problems and notices are best practice.
Limits
Only the markup you paste is analysed. Styles from external stylesheets are not applied, so content hidden by a CSS class is still counted, and content added by JavaScript is missing unless you copy the rendered DOM from DevTools. The checker does not judge whether heading texts describe their sections well; that still needs a human reader.
Exemple resolt
A product page for trail shoes has a header with a nav, a div wrapper instead of main, an h1, then an h3 Best sellers, an h4 inside a section, an empty h2 and an aside with an h2, plus a second nav before the footer. The checker shows five headings and five landmarks and reports: no main landmark (error), no lang on the html element (error), heading jumps from h1 to h3 (warning), empty h2 (error), two navigation landmarks without labels (warning) and text outside every landmark (notice). After changing the wrapper div to main, the h3 to h2 and the h4 to h3, deleting the empty heading and labelling the navs Main menu and Help links, only one finding remains: add lang="en" to the html element.
En resum
- Categoria: Desenvolupament i dades
- S'executa al navegador, sense registre, sense pujar res.
- La informació que introdueixes es queda al dispositiu.
- Disponible en anglès.
- Contingut revisat per última vegada:
- Font oficial: W3C WCAG 2.2 (1.3.1, 2.4.1, 2.4.6) and WAI-ARIA Landmark Regions
Preguntes freqüents
Is it wrong to have more than one h1?
HTML allows it, and it is not a WCAG failure. One h1 that names the page is still the clearest structure, so the checker shows multiple h1s as a notice only.
Why is skipping a heading level a problem?
Users who navigate by headings hear the levels. A jump from h2 to h4 suggests a missing section and makes the outline harder to understand.
Why does my header not appear as a landmark?
A header inside article, aside, main, nav or section is not a banner. Only the page-level header is.
Do I need aria-label on every nav?
Only when there is more than one. Then each needs a distinct label such as Main menu or Breadcrumb so users can tell them apart.
Can I check a live website?
Copy the page source or the rendered DOM and paste it. The tool does not fetch pages itself, so private and local pages work just as well.
Is my HTML stored anywhere?
It stays in this browser as a local draft. Nothing is sent to a server.
