Semantic HTML explained: what each structural tag means, how it helps screen readers, Google and AI assistants read your page, and the mistakes to fix first.

On this page
In short
semantic HTML means using tags that describe what content is (<header>, <nav>, <main>, <article>, <section>, <aside>, <footer>, ordered headings, <figure>, <time>, <table>) instead of generic <div> and <span> everywhere. It lets screen readers navigate by landmarks, helps Google identify the main content of a page, and makes it easier for AI assistants to extract a clean, self-contained passage. It costs nothing at build time and is hard to add later.
Want to go further? Ask
Quick quiz
Who should fix the technical side of your site?
Our advice for you
Check it yourself with free Google tools
Search Console lists the pages Google cannot read, and PageSpeed Insights tests speed. Many small issues are fixed from your website builder settings.
Our advice for you
A web developer
Your problem is in the code or the server: a developer who knows SEO is the right person. Give them the list of errors from Search Console.
Our advice for you
A technical audit tool
Your site has many pages: a crawler reads them all like Google does and gives a full list of errors to fix, page by page.
Our advice for you
An automatic audit, then content
Your site works but brings few visitors: technical issues are rarely the cause. Sorank audits the site, then writes the pages that bring traffic.
A browser displays a <div> and a <nav> the same way. The difference lies in meaning: semantic HTML tells every program reading the page what role each block plays. MDN defines it as using elements according to their meaning, not their default appearance. Search engines, assistive technologies and the crawlers that feed AI models all benefit from that meaning.
The HTML standard defines dozens of elements. These are the ones that structure almost every content page:
| Tag | Role | Typical use |
|---|---|---|
| <header> | Introductory content of the page or of a section | Logo, site name, title of an article with author and date |
| <nav> | Block of major navigation links | Main menu, breadcrumb, table of contents |
| <main> | Unique main content of the page (one visible per page) | Everything except header, menus, sidebars and footer |
| <article> | Self-contained content that makes sense on its own | Blog post, product card, comment, news item |
| <section> | Thematic group of content, normally with a heading | A chapter of a guide, a block of a landing page |
| <aside> | Content related to the main content but separate from it | Sidebar, related links, glossary box |
| <footer> | Closing information of the page or of a section | Legal links, contact, author note |
| <h1> to <h6> | Heading hierarchy | One <h1> for the page topic, <h2> for sections, <h3> for subsections |
| <figure> and <figcaption> | Illustration with its caption | Chart, photo, diagram with a caption |
| <time> | Date or time in a machine-readable form | Publication and update dates |
| <table>, <th>, <caption> | Tabular data with headers | Comparisons, prices, specifications |
Text-level tags also carry meaning: <strong> for importance, <em> for emphasis, <blockquote> and <cite> for quotations, <ul> and <ol> for lists, <a> for links and <button> for actions.
Screen readers build a map of the page from its tags. The landmarks <header>, <nav>, <main>, <aside> and <footer> let a user jump straight to the menu or the content, and the heading list works as a table of contents. The W3C accessibility tutorials on page structure recommend these regions and a logical heading order for that reason.
A clickable <div> is invisible to the keyboard and silent for a screen reader unless you rebuild by hand what a native <button> gives you for free. Native elements come with their role, keyboard focus and expected behavior. In many countries, accessibility of public and commercial websites is also a legal requirement, which makes clean markup a compliance matter as well.
Google has never presented semantic tags as a direct ranking factor, and a page in plain <div> can rank. The value is indirect but real:
Semantic HTML is part of technical SEO in the same way as clean URLs or fast pages: a foundation that lets your content be read correctly.
ChatGPT, Gemini, Perplexity and Google AI Overviews do not cite whole pages: they select passages. The crawlers that fetch your page usually strip navigation and boilerplate, then cut the text into chunks. A section that opens with a clear <h2>, answers its question in the first paragraph and stays within one <section> produces a clean chunk. The same content spread across nested <div>, with headings faked by bold text, produces fragments mixed with menu items. Our guide to content chunking explains how to write sections that survive this cut.
Yes, but indirectly. Most accessibility fixes are also SEO fixes: descriptive alt text, real headings, real links and real buttons. Google calls alt text "the most important attribute" for giving an image metadata, and it reads that text with the page content to work out what the image shows. If a screen reader can follow your page, a crawler can usually follow it too.
Accessibility asks for more than that overlap. Keyboard focus, color contrast, labels on form fields and captions on video all matter to users who cannot use a mouse or cannot see colors well. Crawlers do not test these for you, so check them by hand: tab through the page with the keyboard, then zoom the text to 200% and make sure nothing breaks.
Alt text is read aloud when an image is not seen. It also tells search engines what the image is about. Describe what the image shows and why it is on the page, in one short phrase. Leave a keyword out of it unless it fits the description. Google warns against keyword stuffing in alt text because it makes the page worse for users.
<!-- Stuffed: a keyword list that says nothing -->
<img src="/img/chart-07.png" alt="semantic html seo accessibility tags">
<!-- Useful: says what the image shows -->
<img src="/img/chart-07.png" alt="Bar chart of heading levels on a well-structured article">
<!-- Decorative: empty alt, so screen readers skip it -->
<img src="/img/divider.png" alt=""> | Accessibility need | Markup that meets it | SEO effect |
|---|---|---|
| Jump to the content | One <main> with one <h1> | Clear main content for crawlers |
| Understand an image | Descriptive alt text | Image meaning and image search |
| Follow a link or press a button | <a href> and <button> | Links that crawlers can follow |
| Scan the page by headings | Headings in order, no skipped levels | A visible topic outline |
Google's image guidance on image SEO best practices asks you to consider the accessibility of your alt text, following the W3C guidelines.
Tip
Check one URL twice: first its heading outline with the heading structure analyzer, then its missing or weak alt text with the alt text checker. For the full rules on writing alt text, read our alt text guide.
Here is the skeleton of a blog article, described tag by tag:
1. <header> contains the logo and a <nav> with the main menu. This block repeats on every page, so crawlers learn to ignore it.
2. <main> opens right after. It holds a single <article>, the content you want indexed and quoted.
3. Inside the <article>, a <header> groups the <h1> (the page topic), the author name and a <time datetime="2026-10-18"> element with the publication date in a machine-readable format.
4. Each part of the article is a <section> that starts with an <h2> phrased as the question it answers, followed by <p> paragraphs, <ul> lists or a <table> with <th> headers.
5. A chart goes in a <figure> with an <img> carrying a descriptive alt text and a <figcaption> that states what the chart shows.
6. Related links go in an <aside>, outside the main flow of the article.
7. A <footer> closes the page with legal and contact links.
With this skeleton, a screen reader user can jump to the content in one keystroke, Google sees one main article with a clear outline, and an AI crawler can lift any <section> as a standalone answer.
A heading hierarchy is the nested order of your <h1> to <h6> tags. It is semantic when each level shows where its section sits in the page: <h1> names the topic, <h2> opens a main part, and <h3> splits that part into subsections. Pick each level from the structure of your content, then adjust the size with CSS.
Think of your headings as a table of contents. Extract them alone, and the list should read as a complete outline of the page.
Start with the content. List the topics in order, then give each one a level:
If a part fits under no level above it, the outline needs a new <h2>. A bigger font will not fix it.
| Problem | What it does to the outline | Fix |
|---|---|---|
| An <h2> followed by an <h4> | Skips a level, so the structure looks broken | Use an <h3> and adjust its size in CSS |
| A bold paragraph used as a title | Looks like a section to a sighted reader, but no tool reads it as one | Replace it with a real <h2> or <h3> |
| A heading chosen for its size | Levels no longer match the content | Choose the level by position, then style it |
| An empty heading | Shows up as a blank entry in screen reader navigation | Write a label or remove the tag |
Multiple <h1> tags are valid HTML, but a single one keeps the page topic clear. Our H1 tag guide covers the details.
Copy the headings in order and read them alone. Ask whether they tell the story of the page. Then check that no level is skipped and that every <h3> sits under an <h2>. Use the same template for each post, such as the one in our guide to formatting a blog post, so the outline stays consistent. Plan the levels before you write with a content outline.
Three quick checks cover most issues. First, display the heading outline of the page and read it alone: it should tell the story of the content. Second, look for <main>, <nav> and <article> in the source code. Third, navigate the page with the keyboard only and see whether every link and button is reachable. Our on-page SEO audit lists heading and markup issues for any URL, and the free Sorank Chrome extension shows the heading structure of the page you are viewing.
Use each tag for what it means: one <main>, one <h1>, ordered sections and real tables give people, Google and AI the same clear map of your page. Once the structure is clean, the content still has to be written and published regularly: Sorank writes and publishes optimized articles for Google and AI on autopilot.
Google has not described semantic tags as a direct ranking factor, and pages built with generic div elements can rank. Semantic markup helps Google identify the main content and the outline of a page, which supports relevance. Its effect is indirect, through better understanding of the page.
The HTML standard does not forbid several h1 elements, and Google says it can handle them. Still, one h1 that states the topic of the page, followed by ordered h2 and h3 headings, is the clearest structure for users, screen readers and search engines.
An article is content that makes sense on its own and could be shared or syndicated separately, such as a blog post or a product card. A section is a thematic part of a larger whole, normally introduced by a heading. An article can contain sections, and a section can contain several articles.
