Design

Semantic HTML

Semantic HTML uses HTML elements according to their meaning, <button> for buttons, <nav> for navigation, <article> for self-contained content, <h1>-<h6> for hierarchical headings, rather than reaching for <div> with styling. Semantic markup is the foundation of accessibility, SEO, and resilient interactive behaviour.

Updated

Every <div onclick> that should be a <button> is a small accessibility regression: screen readers don't announce it as a button, keyboard users can't tab to it, Enter and Space don't trigger it. Every section without a heading is a small SEO regression. The pattern is mostly about discipline rather than knowledge: HTML's semantic vocabulary is small enough to memorise, the right element is usually obvious, and the framework's component library either has good defaults or doesn't. The lasting test: open the page in a screen reader and listen. Semantic HTML reads as a coherent document; non-semantic markup reads as 'clickable, clickable, clickable, clickable'.

See the term at work

Stride keeps stories, architecture decisions, tests and delivery data in one workspace, where the terms in this glossary are things you can open.