What are semantic tags in HTML?


Semantic tags clearly define the purpose of the HTML element. It also describes the type of content that the element should contain.

For example, <header>, <footer>, <article> are considered semantic elements as they clearly describe their purpose and the type of content they should enclose.

New HTML5 semantic tags to structure the document in a meaningful way are:

Semantic Tags - HTML

  • <header>
  • <nav>
  • <article>
  • <section>
  • <aside>
  • <footer>

Semantic tags also help search engines to parse the webpage correctly and find accurate information. Thus, helping search engines to correctly index the page.

Share and support us

Share on social media and help us reach more people