beginnertermHTMLHTML / Semantic HTML
BeginnerNot yet reviewed

Semantic HTML

Semantic HTML means choosing elements for what the content is, such as nav, main, button and article, instead of using a generic div for everything.

Definition

Semantic HTML means choosing elements for what the content is, such as nav, main, button and article, instead of using a generic div for everything.

Use case

A real button works with the keyboard and screen readers automatically. A styled div needs extra work to do the same.

Related terms

Documentation

Semantics

MDN · Docs

A concise explanation of why meaning matters in markup, with examples.

Suggest a change