Course Content
About Lesson

Semantic HTML is the use of HTML elements that provide meaning about the content within them. Unlike non-semantic elements (like <div> and <span>), semantic elements clearly define their purpose. For example, <header> denotes the header section, <nav> represents navigation, and <footer> is used for the footer of a page.

  • Accessibility: Screen readers and assistive technologies can better navigate and interpret the page.
  • SEO: Search engines use the structure provided by semantic tags to better understand content hierarchy and context.
  • Code Readability: Semantic elements make the HTML code more readable and maintainable.