Glossary term

Semantic HTML

SMore terms under S

Semantic HTML uses web-page markup that identifies what each part does. A heading is marked as a heading, a button as a button and a navigation area as navigation.

These labels help browsers and assistive tools interpret the page. For example, HTML has a built-in button element:

HTML · use an element with the right job
<button type="button">Show delivery options</button>

Someone using a keyboard can move to this button and activate it. A developer could style a generic container, called a div, to look identical, but appearance alone would not give it the button’s built-in behavior.

Correctly marked headings also let a screen-reader user move between sections. The visible design and the underlying labels work together to make a page easier to use.

Sources

← Browse Glossary: S