0Pricing
Frontend Academy · Lesson

Semantic Tags: header nav main article footer

Replace meaningless divs with semantic HTML5 elements and understand how they help browsers, search engines, and screen readers.

What Is Semantic HTML?

Semantic HTML uses elements that describe the meaning of content, not just its appearance. <article> says "this is a self-contained piece of content". A generic <div> says nothing.

Before Semantics: Div Soup

Early web developers built layouts entirely from <div> and <span> elements. Screen readers couldn't distinguish navigation from content from ads. Search engines had to guess the page structure.

<!-- Old way -->
<div class="header">...</div>
<div class="nav">...</div>
<div class="content">...</div>
<div class="footer">...</div>

All lessons in this course

  1. Document Structure: DOCTYPE html head body
  2. Semantic Tags: header nav main article footer
  3. Text Images Links and Lists
  4. Forms: input label button
← Back to Frontend Academy