Semantic HTML

Semantic HTML means using tags that describe the meaning of content — like <header>, <nav>, <article>, and <footer> — instead of generic <div>s. It makes pages clearer for browsers, search engines, and screen readers.

Web

A <div> tells you nothing about what's inside it, but an <article> or <nav> does. Choosing meaningful tags improves accessibility and SEO and makes your code easier to read.

Common semantic elements include <header>, <main>, <section>, <article>, <aside>, <nav>, and <footer>.

Examples

HTML

<article>
  <h2>Blog Post</h2>
  <p>Some content here.</p>
</article>

Output:

Renders a self-contained article with a heading and paragraph, marked up meaningfully.

Learn it in a lesson

See also

Back to the Dictionary