Glossary

What is Semantic HTML?

Also called: Landmarks, Main and nav elements

Semantic HTML uses tags that say what a part of the page is, such as main for the primary content and nav for the menu. Screen readers and crawlers use them as signposts.

Why it matters

The signposts help assistive tools and software skip menus and reach your real content. Onbiom does not claim they change rankings.

How Onbiom checks it

"Your page marks its main part and menu" reads the homepage as first loaded. It fails when there is no main element (or role=main), when there is more than one, or when there is no nav element (or role=navigation). Hidden parts are ignored. It passes otherwise. It also reports the number of article and list elements, but only main and nav count.

Whether the content inside is useful is not assessed.

In your report this appears as: Main content and navigation landmarks.

How to check it yourself

  1. Open your homepage source and search for <main and <nav.
  2. There should be exactly one main and at least one nav.
curl -s https://example.com/ | grep -o -E '<(main|nav)[ >]'

Not sure about your own site? Paste your address and see in a minute which of these checks your site passes. Free, no account needed.

Check your site

How to fix it

WordPress
Most modern themes include both. If not, ask the theme author or edit the template.
Ask your web person
Wrap the primary content in one main tag and the menu links in a nav tag.

Related terms

Sources and further reading

Last reviewed: