HTML Semantic Tags

A lot of developers tend to use the <div> tag for everything. This is fine. In 1999.

 

Since the arrival of HTML version 5, we have new sematic tags we can use.

What are semantic tags? What are they good for?

Semantic HTML or semantic markup is HTML that introduces meaning to the web page rather than just presentation. For example, a <p> tag indicates that the enclosed text is a paragraph. This is both semantic and presentational because people know what paragraphs are, and browsers know how to display them.

What are semantic tags? What are they good for?

Text

deck

By lurx

deck

  • 29