Web development and performance

What is Semantic HTML?

Semantic HTML means using elements for what they mean rather than how they look — nav, main, article, button, table — so browsers, assistive technology and search engines can understand the structure without guessing from class names.

Also called: semantic markup

Why it matters to three audiences at once

  • Screen readers use landmarks and headings to let users navigate. A page of divs offers nothing to navigate by
  • Search engines use heading structure to understand what a page covers and how it is organised
  • Browsers give real elements keyboard behaviour, focus handling and form semantics for free

The most common substitutions worth fixing

Instead ofUseBecause
div with a click handlerbuttonKeyboard operable and announced correctly, at no cost
div with a click handler that navigatesa with hrefCan be opened in a new tab, crawled and bookmarked
div stack for tabular datatable with th scopeRow and column relationships are announced
b and i for emphasisstrong and emConveys meaning rather than only appearance
Multiple h1 for stylingOne h1, then h2 and h3Heading level is structure, not font size

The shortcut that pays for itself

Use the real element and style it, rather than rebuilding its behaviour on a div. Every accessibility feature you would otherwise implement by hand — and get subtly wrong — is already there.

Where this is covered in depth

A definition can only go so far. Technical SEO, in the order the problems actually block you covers this properly — 4 minutes, free, no email required.

Who wrote this

Anas Bin Masud builds e-commerce sites and does technical SEO for businesses in the UK, Canada and Pakistan. These definitions come from client work rather than from a content brief — where an entry describes a mistake, it is usually one found on a real site. More about how I work.

Related terms

All 184 terms in the glossary →

Want this handled rather than explained?

Send the brief and you get a reply within one business day — either questions, or a scoping call. If your project is not something I should take on, I will say so then.

Response
Replies within 1 business day
Hours
Mon–Fri, 09:00–18:00 PKT — overlaps 05:00–14:00 UK, 00:00–09:00 US Eastern
Booking
Booking projects from October 2026
WhatsApp — opens a chat with +92 346 5348466 in a new tab