Instead of saying "make this text big and bold", semantic markup says "this is the page's main heading" or "this number is the product's price". The code carries the content's meaning, so browsers, screen readers and search engines can treat each part of the page for what it is, whatever it looks like.
You'll meet the term in two related senses:
- Semantic HTML: using HTML elements that match the content, like
<nav>,<article>and<h2>, instead of generic<div>containers. - Structured data: a separate, machine-readable description of the page using a shared vocabulary, usually schema.org, that tells search engines facts like "this page is a recipe that takes 30 minutes".
SEOs often mean the second when they say "semantic markup". Developers usually mean the first. Both add meaning, at different levels of detail.
Semantic HTML: meaning in the page structure
HTML elements have meanings of their own. <h1> means a top-level heading, <nav> a block of navigation links, <button> something you press to act. When you pick elements for what they mean and leave the looks to CSS, browsers expose that structure to assistive technology. A page-level <header>, for example, becomes the "banner" landmark that screen reader users can jump to.
Here's the same page head written both ways:
<!-- Generic -->
<div class="top">
<div class="logo">Acme Garden</div>
<div class="menu"><a href="/tools">Tools</a> <a href="/seeds">Seeds</a></div>
</div>
<!-- Semantic -->
<header>
<p class="logo">Acme Garden</p>
<nav><a href="/tools">Tools</a> <a href="/seeds">Seeds</a></nav>
</header>
They can look identical. Only the second tells software which part is the site header and which is the menu.
The main win is accessibility. For search, Google says the web has so much invalid HTML that it can rarely depend on the meanings in the HTML specification, and that heading order doesn't matter to it (Google Search Central). The elements, landmarks and rules are covered in semantic HTML.
Structured data: meaning search engines can read directly
Structured data is the more explicit layer. Google describes it as a standardized format for giving information about a page and classifying its content. On a recipe page, that means spelling out the ingredients, cooking time and calories (Google Search Central).
Most of it uses the schema.org vocabulary, a shared set of types and properties founded by Google, Microsoft, Yahoo and Yandex. Google reads three formats:
- JSON-LD: a
<script>block separate from the visible text. Google recommends it in most cases because it's the easiest to add and maintain. - Microdata: attributes added to the HTML elements that show the content.
- RDFa: another attribute-based format, also used for linked data.
A JSON-LD block for an article looks like this:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to plant garlic in autumn",
"datePublished": "2026-09-14",
"author": { "@type": "Person", "name": "Sam Rivera" }
}
</script>
Search engines use structured data to understand a page and, where they support a type, to show rich results such as recipe cards or product prices. Google's search gallery lists the types it uses, and each one has required properties you must include to be eligible.
How the two layers compare
| Semantic HTML | Structured data | |
|---|---|---|
| What it describes | The role of each part of the page | Facts about the page's subject |
| Example | <nav>, <article>, <h2> |
"@type": "Recipe", "cookTime": "PT30M" |
| Who uses it most | Screen readers, browsers, developers | Search engines and other data readers |
| Visible to visitors | It is the page | Usually not (JSON-LD) |
| Main payoff | Accessibility, cleaner code | Eligibility for rich results |
A well-built page uses both. Semantic HTML gives every visitor a clear structure, and structured data adds the details a search engine can't reliably infer.
Rules that keep markup useful
- Mark up what's on the page. Google's guidelines say not to mark up content that readers can't see. If the JSON-LD names a performer, the page must show that performer.
- Don't expect a guarantee. Correct structured data makes a page eligible for a rich result. Google decides whether to show one.
- Stay accurate. Misleading or spammy structured data can get a manual action. That removes the page's rich result eligibility, though Google says it doesn't affect ranking (Google Search Central).
- Test before and after you publish. The Rich Results Test shows which rich results a page qualifies for. Your browser's developer tools show the accessibility tree your HTML produces.
For how structured data works in more depth, see structured data.