BF50 Black Friday · 50% off all plans
from $5/mo · Auto-applied ---:--:-- Claim 50% off →
Skip to content

Search Seonio

Type a keyword, domain, or paste a URL

Start free with $1 to see full results. Powered by Seonio
SEO

Semantic markup: HTML elements and structured data

Semantic markup labels what content means, not how it looks. On the web it comes in two layers: semantic HTML elements and structured data like schema.org.

Monthly searches · semantic markup
720
Keyword research data
semantic markup
Semantic markup: HTML elements and structured data
Click the image to view it full size

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:

  1. Semantic HTML: using HTML elements that match the content, like <nav>, <article> and <h2>, instead of generic <div> containers.
  2. 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.

Seonio

Put it to work on your own site

Keyword research, traffic, backlinks and clustering in one place. Start with a free $1 to test, no card required.