Skip to main content

Semantics for HTMLs

Semantic HTML means choosing elements by meaning rather than appearance. Landmarks such as header, nav, main, article, section, aside and footer describe page regions, while blockquote, cite, code and pre mark quotations and code. Browsers, search engines and screen readers use these meanings to navigate and interpret content.

Stage: Document Basics · Part of the HTML roadmap · Last reviewed 19 November 2026

What to learn in Semantics

Semantics interview questions

What is the difference between article and section?

An article is self-contained content that makes sense on its own, such as a blog post or news item. A section groups related content within a larger document, normally with a heading. If the content could be syndicated alone, use article.

Why use semantic elements instead of div?

Semantic elements carry built-in meaning, so screen readers can jump between landmarks, search engines can identify the main content, and other developers can read the code. A div has no meaning and gives none of those benefits.

Where Semantics fits in the HTML roadmap

Semantics belongs to the Document Basics stage (beginner level), which takes about 8 hours. The skeleton of a page.

Back to the full HTML roadmap