Zum Hauptinhalt springen

HTML Is a Meaning Contract

Explain why semantic HTML should be chosen before visual styling.

html-css-basics5 min read

The first job of HTML is to encode meaning, not appearance. Meaning before styling HTML gives the browser a document model. That model is read by more than sighted users looking at pixels. It is read by accessibility APIs, keyboard navigation, browser defaults, search engines, automated tests, and teammates. A div can be styled to look like anything, but it does not tell the browser what the thing is. A button, link, heading, list, table, label, and main region each carry a built-in contract. Why the mechanism matters Semantic elements reduce custom work. A real button can receive focus, activate…

Read the full lesson

Sign up free: one personalized lesson every day, matched to your role and goals.

← Back to library

Kontakt aufnehmen