• AI Bootcamp
  • Marketingová Plzeň
  • SEO Pivo
  • Contact
  • [email protected]
  • Personal website
[email protected]
Personal website
SEO, AI and Marketing Blog
Martin Bangho
  • Home
  • GEO & SEO
  • AI
  • Marketing
  • CS
  • EN
  • Home
  • GEO & SEO
  • AI
  • Marketing
  • CS
  • EN
Home GEO & SEO
Muž v modré košili porovnává pevnou destičku a funkční dřevěná dvířka.

Semantic HTML: element meaning, accessibility and SEO

Martin Bangho by Martin Bangho
November 24, 2026
in GEO & SEO
Reading Time: 6 mins read
0
0

Semantic HTML expresses what individual parts of a page are: a heading, navigation, an article, a link or a button. This is not just about making code look tidy. The right elements give browsers and assistive technologies information that appearance alone cannot provide. For SEO, this is a sensible technical foundation, not a shortcut to better rankings or guaranteed AI citations.

Appearance and meaning are two different layers

Large bold text is not necessarily a heading. You can draw it with a <div> and CSS so that it looks identical. For a screen reader, however, that does not create a heading users can navigate to through the heading list. An <h2> element, by contrast, conveys the section level even if you give it an understated appearance.

MDN explains semantics as the meaning of code, not its visual appearance. HTML should describe structure and purpose, CSS presentation. JavaScript can add behaviour. When you combine these roles into a single clickable rectangle without the appropriate element, you have to laboriously restore the missing properties.

Further reading

Muž v modré košili ukazuje na tři kruhy různých velikostí a drží modrou kartu.

TOFU, MOFU and BOFU: choosing content for customer decisions

November 24, 2026
AI obsah na webu: Jak jej využít, aniž by poškodil SEO

AI content on your website: how to use it without harming SEO

November 24, 2026
Muž v modré košili porovnává dvě sestavy kostek na podstavcích.

SEO testing: identify a change’s impact without mistaking noise for evidence

November 24, 2026
Muž v bílé košili měří dřevěný hranol posuvným měřidlem.

SEO tools: choose a toolkit for your work and budget

November 24, 2026

This does not mean banning div and span. They are legitimate for grouping elements for layout or styling. The question is whether you are unnecessarily using them to replace an element whose meaning and ordinary behaviour the browser already knows. Likewise, neither React nor utility CSS inherently rules out meaningful HTML. What matters is the component output, not the framework name.

Choose elements according to the content’s role

<main> identifies the document’s main content. <nav> is for significant navigation blocks, not automatically every small group of links. <article> suits a self-contained piece of content, such as an article or another unit that makes sense independently. <section> groups a thematically related part of a document, usually with its own heading. It is not a replacement for every wrapper div.

<header> and <footer> can belong to the whole page or to a particular article. Their context matters; a nested article header is not automatically another global page region. The WAI overview helps explain the main regions, while the WHATWG HTML standard defines the precise boundaries of elements.

Headings should express hierarchy, not a desired font size. For an ordinary article, one main H1 followed by H2 sections and any H3 subsections is a clear starting point. There is no need to invent a claim that Google penalises every second H1. The reason is an understandable outline for people and tools. WAI recommends avoiding skipped levels when opening subsections wherever possible.

An illustrative example: a guide page independent of appearance

The simplified example below is the body of a standalone illustrative page, not code to insert into the middle of an existing article. The paths are fictional. A complete document would also need a language, title, styles and other settings appropriate to the website, for example.

<header>
  <nav aria-label="Main navigation">
    <a href="/navody/">All guides</a>
  </nav>
</header>
<main id="obsah">
  <article>
    <header>
      <h1>How to choose a filter for a home air purifier</h1>
      <p>Check your model designation before buying.</p>
    </header>
    <section>
      <h2>Where to find the model designation</h2>
      <p>Check the device’s rating plate.</p>
      <ol>
        <li>Copy the model designation from the plate.</li>
        <li>Compare it with the filter compatibility list.</li>
      </ol>
    </section>
    <p><a href="/kompatibilita/">Filter compatibility overview</a></p>
  </article>
</main>
<footer>
  <p>An illustrative information website about home appliances.</p>
</footer>

Even without CSS, it is clear what the navigation is, where the main content begins and which steps belong to the guide. The numbered list expresses sequence here; bullets would be used for independent options. The link has a specific destination and text explaining where it takes the reader.

The example does not establish compatibility for any real product or complete website accessibility. It illustrates structure. In an existing CMS, first find out what the theme already provides. Adding another main or repeating the H1 in the body merely to copy the example would be the wrong result.

A link goes somewhere; a button performs an action

When an element leads to another page, use an <a href="…"> link. When it opens a dialog or performs a local action, you generally need a button. Visually, they can look identical. The difference becomes apparent in keyboard use, opening a link in a new tab and a crawler extracting addresses.

Google recommends links with href and notes that it cannot reliably extract URLs from script events alone. This is not a ban on JavaScript: a dynamically created link can also be fine if it has a genuine link element and destination address.

A native button has basic keyboard operation built in. Adding role="button" to a div does not supply the behaviour. WAI describes a role as a promise: if you give an element a button role, you must also provide the expected interaction. ARIA is not a way to bypass interaction design. It is useful where native HTML falls short, but misuse can also override an element’s meaning.

The same principle applies to forms. Visible text next to a field does not necessarily give it a programmatic name. Use a real label associated with the field. Distinguish headers from data in a data table, and supply appropriate alternative text for an informative image. MDN’s accessible HTML guide summarises details and examples. Merely swapping tags does not verify contrast, focus order or the clarity of error messages, however.

What this means for SEO, AI and speed

Well-marked-up content makes navigation easier and gives tools additional clues for processing it. An article divided into real headings, paragraphs and lists is also easier to review than a long block of visually formatted wrappers. That is a useful reason to fix it even without a story about a new ranking factor.

Jono Alderson and Barry Adams also highlight the importance of semantic HTML. Their 2025 articles are expert commentary, not proof that a specific tag automatically improves rankings or secures a citation. Each AI system also has a different route to content. Availability in the original HTML, subsequent rendering, source retrieval and use in an answer are distinct steps.

Apply the same caution to performance. Replacing div with article while keeping the same node count, styles and scripts does not, by itself, demonstrate a speed improvement. If you also remove unnecessary wrappers or scripts, measure the specific change; do not attribute the entire result to the tag name. JSON-LD structured data does not replace functioning links and controls in the visible document either.

The broader context is covered in the articles on UX and SEO and optimising websites for AI search. A specific theme change, however, needs a narrower brief: what each element should mean and how you will establish that users can actually operate it.

How to verify and accept the change

Start with one important template, such as an article or product detail page. List its main content, navigation, headings and controls. Then compare the original HTML response with the resulting browser DOM, meaning the document tree after script modifications. The first view shows what the server sent; the second shows what the application actually constructed from it.

  1. Check that the heading list provides an understandable outline, with no headings used solely for their font size.
  2. In the accessibility tree, check the main regions and the names of links, buttons and form fields.
  3. Complete real tasks using the keyboard. Check visible focus, order and activation, not just the number of elements.
  4. Test representative content, empty and error states, a narrow screen, and relevant browser and assistive technology combinations.
  5. Complement HTML validation and an automated audit with manual review. A clean parser result is not an accessibility certificate.

An acceptance criterion could read: “On the article detail page, the main content is identifiable, the outline matches the text, navigation links have destinations and all controls can be used with a keyboard.” This is more specific than “use more semantics”. It also leaves developers room to solve the actual problem rather than cosmetically renaming wrappers.

Want to review a web template’s meaning and operation?

I can help turn uncertainties about a template’s structure and operation into specific developer requirements. Get in touch with a description of the page and the visitor’s task. We will define the necessary technical and accessibility tests separately; a consultation is not accessibility certification.

Tags: Technical SEOUser Experience
Previous Post

Sitemaps: how to create, maintain and verify them

Next Post

Noindex, robots.txt, canonical or page removal?

Martin Bangho

Martin Bangho

I’m Martin Bangho. I’ve worked in digital marketing and built websites since 2015. These days I help companies with SEO and with getting found in AI search. I question things, and I’m picky about the details, but I’m an optimist. I believe marketing can be honest and still make money for a business. When I’m not working on marketing or running my business, you’ll probably find me at the gym, at a hip-hop gig or out with friends. On this blog I write about questions that come up with clients, what I test myself and what I make of the results. Hermes, my AI assistant, helps me write. I bring the notes, the results and my own take. Hermes helps me structure the article, catch grammar mistakes and get back to the point when I’ve gone off on my third tangent in the middle of a sentence. I review and edit every article myself before it goes out, so it says exactly what I mean.

Related articles

Martin Bangho in a white shirt examines two sheets with blue and grey website layouts using a magnifying glass at a wooden desk.
GEO & SEO

Buying a website: how much of its organic traffic is valuable to you?

November 25, 2026
Martin Bangho compares blue and sand-coloured folding-chair models with their matching photo cards.
GEO & SEO

Visual discoverability: connecting images to the right product and location

November 25, 2026
Jak vybrat copywritera?
GEO & SEO

How to Choose a Copywriter

November 24, 2026
SEO GAP Analýza
GEO & SEO

SEO GAP Analysis

November 24, 2026
Next Post
Muž v bílé košili ukazuje zámek vedle průhledné branky a modré šipky.

Noindex, robots.txt, canonical or page removal?

Odebírat
Upozornit na
0 Komentáře
Nejstarší
Nejnovější Nejlépe hodnocené

Martin Bangho

SEO Consultant & AI Strategist

I use data to build marketing plans with people across a business, from sales and development to content. The aim is to strengthen the brand and help it compete.

Tags

Analysis B2B B2C Brand E-commerce Event reports Google Guide Hermes Off-page SEO On-page SEO SaaS Technical SEO Theory Tools User Experience Websites

Latest posts

  • Buying a website: how much of its organic traffic is valuable to you?
  • Visual discoverability: connecting images to the right product and location
  • How to Choose a Copywriter
  • SEO GAP Analysis
  • How to Create a Content Calendar
  • Home
  • GEO & SEO
  • AI
  • Marketing
  • CS
  • EN

© 2025 Martin Bangho – SEO Consultant & AI Strategist

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
  • Home
  • GEO & SEO
  • AI
  • Marketing
  • CS
  • EN
[email protected]

© 2025 Martin Bangho – SEO Consultant & AI Strategist

This website uses cookies. By continuing to use it, you agree to their use. Read our privacy and cookie policy (in Czech).