b2KIT

HTML Semantic Structure Quiz

Test your knowledge of semantic HTML elements with quizzes and best-practice tips.

How to Use HTML Semantic Structure Quiz

  1. 1

    Start the quiz

    Click begin to start the HTML semantic elements quiz.

  2. 2

    Answer each question

    Choose the correct semantic HTML tag for each scenario.

  3. 3

    Review your results

    See your score and learn which answers were correct.

Tested tool guide Tested browser tools Checked August 16, 2026

What HTML Semantic Structure Quiz does, with a checked example

An interactive quiz that checks your understanding of semantic HTML elements: header, nav, main, article, section, aside, figure, time, address, and the other structural tags. Each question presents a markup scenario or a short code snippet, you pick the element you would use, and the tool marks the answer and explains the rule, with a best-practice tip alongside every question. The surprise most people hit is that semantic tags barely change how a page renders, so the quiz scores your grasp of meaning and structure, not styling. Strong CSS skills do not predict a good score here.

Worked example

A concrete input and expected output from the current implementation.

Input

Which element should wrap the page's primary content? A: header, B: main, C: section, D: footer

Expected output

B - Correct. <main> is the element for the dominant content of the document. A page should have only one <main> element, and assistive technology exposes it as the 'main' landmark for jumping to the core content.

The HTML specification defines <main> as the dominant content of the document body and requires it to appear only once per page, so B is the only fitting answer. Screen readers expose it as the 'main' landmark, which is the point the question is testing.

How the result is produced

1

Question flow

Each round opens with a question about a semantic element or a short markup scenario, with several candidate elements to choose from. Selecting one submits the answer; the tool marks it right or wrong, reveals the element it was looking for, and explains the rule in a sentence or two. Correct answers accumulate into a round score, so you get feedback on every question as you go.

2

Tips and rules

Every question pairs with a best-practice tip that states the rule behind the answer and the misuse that makes the question a trap. The tips concentrate on meaning: which tags express structure (article, section, aside, figure) and which are generic containers (div, span), and how browsers, search engines, and assistive technology read that difference.

Good uses

  • You have a front-end interview coming up and want a fast self-test on which landmark elements exist and what each one is for.
  • A code review is split over whether a block belongs in article, section, or a plain div, and you want the rule stated crisply.
  • You are onboarding a junior developer and want a quick check they can run before they write new page markup.

Limits and checks

  • A high score is not an accessibility audit. The quiz tests whether you can recognize elements and their rules; it cannot judge the pages you actually ship, and most real-world accessibility work (alt text, form labels, focus order, keyboard support, contrast) is outside its scope entirely.
  • Every question has one right answer, but real markup decisions are context-dependent. The same block could reasonably be an article in one page and a section in another, so a wrong pick is a prompt to read the explanation, not proof that your own structure is wrong.
  • The quiz necessarily simplifies. The HTML Living Standard changes continuously, and details like sectioning roots versus sectioning content, or exactly which elements create landmarks, get compressed into a multiple-choice format, so treat edge cases as things to verify against the spec.

Common questions

Does using semantic elements change how my page looks?

Almost never. Browsers apply default styles to a few of them, like heading sizes and list bullets, but article and div render the same in practice. Semantics change what markup means to browsers, search engines, and screen readers, not how it looks, so you will not see the difference visually.

Will switching to semantic elements make my site accessible?

No, not by itself. Landmarks and heading structure give screen reader users a navigable outline, which is genuinely important, but accessibility also depends on alt text, labels, focus management, contrast, and keyboard behavior. The quiz covers the structural layer, not the full checklist.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools