Semantic HTML
Using elements that describe meaning, which aids accessibility and search.
See it on the 3D treeGoing deeper
A native button, link, list, table or navigation element carries a role and often built-in behaviour. A generic box styled to look like a button has neither unless someone adds keyboard support, focus and a role by hand. Landmarks and ordered headings also let people jump around a page.
Why it matters
You get much accessibility and robustness from the platform, and your design's structure survives without its visual styling.
In practice
You specify that Delete is a real button and Help is a link, because one performs an action and the other navigates.
Common mistake
Building clickable controls from generic div elements, which keyboard and screen reader users may be unable to operate.
Connected terms
- HTMLIt is HTML used according to the meaning of each element.
- Progressive EnhancementSound markup is the baseline that further features build upon.
- SEOClear headings and links help search engines interpret a page.
- Alt TextThe image element's alt attribute is one way markup conveys meaning.
- ARIAARIA fills gaps, but a suitable native element is preferred.
- Keyboard NavigationNative controls come with much keyboard support already.
- Screen ReaderScreen readers rely on element roles and structure to announce and navigate.