What it means
When to use it
Example HTML
Live example
Common mistakes
A semantic element says what its content is: a header is introductory content, a nav is navigation, an article is a self-contained piece. A div says nothing — it is a generic container with no meaning of its own. Browsers, search engines and screen readers use that meaning: a screen reader can jump straight to the main content or list the landmarks on a page, and a search engine can tell a navigation block from the article itself. That is why a div is the right choice only when no semantic element fits — never use a div where a header, nav, main, section, article, aside or footer would say what the content is.
What is the HTML5 Semantic Elements Explorer?
The HTML5 Semantic Elements Explorer is a free online tool that teaches you the 13 semantic HTML elements — the tags that say what your content is, instead of just holding it. Pick an element from the dropdown, such as <article> or <nav>, and the tool shows you what it means, when to use it, example HTML you can copy, a live example, and the common mistakes to avoid. It is made for anyone learning HTML properly: beginners moving past <div>, bloggers structuring a post, and developers who want their pages to make sense to search engines and screen readers.
A semantic element says what its content is. A <header> is introductory content, a <nav> is navigation, an <article> is a self-contained piece. A <div> says nothing — it is a generic container with no meaning of its own. Browsers, search engines and screen readers use that meaning: a screen reader can jump straight to the main content or list the landmarks on a page, and a search engine can tell a navigation block from the article itself.
Everything runs in your browser. There is no sign-up, no account, and nothing you type leaves your device.
How to use the HTML5 Semantic Elements Explorer
- Pick an element. The Semantic element dropdown lists all 13 elements: header, nav, main, section, article, aside, footer, figure, figcaption, details, summary, time and address. Article is selected by default.
- Read what it means. The “What it means” section explains the element in one or two sentences, following the HTML standard.
- Read when to use it. The “When to use it” section gives concrete situations — for example, nav is for the main site menu, a table of contents, pagination or breadcrumbs.
- Study the example HTML. The Example HTML box shows a short, correct snippet using the element. Press Copy example markup to take it.
- Look at the live example. The Live example section renders the element so you can see what it looks like. The examples are the tool’s own fixed markup, never anything you type.
- Check the common mistakes. Every element has a “Common mistakes” section describing how it is usually misused — and what to use instead.
- Reset when you want to start over. Reset returns the dropdown to the
<article>element.
Worked example: the article element
With <article> selected, the tool shows that an article is a self-contained composition that could be distributed or reused on its own — a blog post, a news story, a forum post or a product card. It belongs on blog posts, news articles, comments and widgets that stand alone. The example HTML is:
<article>
<h2>How to Use the Time Element</h2>
<p>The time element marks up dates and times.</p>
</article>
And the common mistake is using article for any content block. An article must make sense on its own — a section is a thematic part of something larger, while an article is independently distributable. If your block only makes sense inside the page around it, it is probably a section, not an article.
Now switch the dropdown to <time>. The tool explains that time marks up a specific date, time or duration in a machine-readable form through its datetime attribute, and gives this example:
<time datetime="2026-11-11">11 November 2026</time>
The visible text is for people; the datetime attribute is for machines. The common mistake is leaving the datetime attribute out when the visible text is not machine-readable — and never using time for vague times such as “tomorrow” without a datetime value.
Structuring a page the semantic way
A blog post. A post is an article, and everything inside it hangs off that structure. The post’s title and introduction go in a header at the top, the body is made of sections with headings, and the author and date go in a footer at the bottom — a footer is not only for the bottom of a page. Related posts go in an aside, because they are tangential to the post itself.
A page outline. A whole page has its own landmarks: a header for the site masthead, a nav for the main menu, a main wrapping the primary content, and a footer for copyright and contact links. There must be only one main per page, and the header, navigation and footer stay outside it — they are not the dominant content. A screen reader user can then jump straight to main and skip the navigation.
Dates, figures and disclosures. Smaller elements solve smaller problems. Time marks up publication and event dates so machines can read them. Figure wraps an image with its figcaption, so the caption stays attached to the content it describes. Details with a summary makes a disclosure widget — an FAQ answer or a spoiler — with no JavaScript at all.
Tips for using semantic elements correctly
- One main per page. There must be only one
<main>on a page, wrapping the dominant content. Do not put the site header, navigation or footer inside it — those are not the dominant content. - A section needs a heading. Do not use section as a generic wrapper. If there is no heading and no thematic grouping, use a div. A section without a heading is usually a sign the wrong element was chosen — try the explorer’s section entry and read its common mistakes.
- Do not use article for any content block. An article must make sense on its own, away from the page around it. A product card, a comment or a blog post qualifies. A chapter of a longer article does not — that is a section.
- Figcaption only lives inside figure. Do not use figcaption outside a figure element, and do not use more than one figcaption per figure. It is the caption or legend for its parent figure, as its first or last child. And do not use figure for every image: an image with no caption that is not referenced from the text needs only a plain img.
- Address is for contact information, not any address. Use it for the author or organisation’s contact details — an email or phone number — for the nearest article or body element. Do not put a map or opening hours inside it.
- Reach for a div only when nothing fits. A div is the right choice when no semantic element describes your content. That is its job. The mistake is using a div where a header, nav, main, section, article, aside or footer would say what the content is.
Frequently asked questions
What is semantic HTML?
Semantic HTML is HTML that describes what its content is, not just how it looks. A <nav> says “this is navigation”, an <article> says “this is a self-contained piece”, a <time> says “this is a date”. A <div> says nothing at all. The meaning helps search engines understand the page and lets screen readers offer landmarks and jumps, which is why semantic markup is a basic part of building a good page.
How many semantic elements does the tool cover?
Thirteen: header, nav, main, section, article, aside, footer, figure, figcaption, details, summary, time and address. For each one the tool gives you its meaning, when to use it, example HTML, a live example and the common mistakes to avoid.
Do semantic elements change how a page looks?
No. By default, most semantic elements render exactly like a div — a plain block with no styling. Their value is in the meaning they carry for browsers, search engines and assistive technology, not in their appearance.
Do semantic elements help with SEO?
They help search engines understand your page’s structure — which part is the navigation, which part is the article, which part is a sidebar. That understanding is one signal among many, not a ranking trick on its own. A well-structured page is easier for both search engines and people to make sense of.
What is the difference between section and article?
A section is a thematic part of something larger — a chapter, or the “Features” part of a page. An article is a self-contained composition that could stand alone — a blog post, a news story, a comment. If you can lift the content out and it still makes sense on its own, it is an article. Otherwise, it is a section.
Conclusion
The HTML5 Semantic Elements Explorer turns thirteen tags into thirteen small lessons: what each one means, when to use it, a correct example, and the mistake to avoid. Work through article, section and main first — those three cover most of the structure on a real page. When you want to check the structure you have built, the Heading Structure Checker will review your page’s headings and tell you where the outline breaks down.

