Semantic HTML: meaning, examples and practical use
Semantic HTML uses elements that communicate the role of content rather than only its appearance. Real headings, navigation regions, lists, links and buttons help browsers and assistive technologies interpret a page’s structure and behavior.
Also known as: Szemantikus HTML
At a glance
- Appearance alone does not communicate an element’s role.
- Links navigate and buttons perform actions; the correct native element provides a useful foundation.
- Semantic structure is not an independent ranking guarantee.
On this page

What does communicating a role mean?
A paragraph styled with large type is not necessarily a heading in the document structure. An appropriate heading element expresses that role. MDN's explanation of semantics describes meaning beyond appearance. CSS can then shape the visual presentation.
Why use a native element?
A real link supplies a destination; a button initiates an action. Replacing either with a clickable box means recreating keyboard behavior and information needed by assistive technology. Accessibility therefore cannot be achieved through attractive styling alone.
Example: a glossary contents list
Imagine a page whose section titles are real h2 elements and whose contents list contains links to those sections. Readers and screen-reader users can navigate the document structure. A heading drawn into a background image does not provide the same semantic information.
What should be checked?
Review heading hierarchy, the actual roles of lists and tables, and keyboard access to actions. Correct semantic HTML does not replace accurate content, adequate contrast or a working destination. Structure and practical usability need to work together; neither should be inferred from a screenshot alone.