Sree Sankar

Semantic HTML

What is semantic?

The English meaning of semantic is - related to the meaning of words!

gif

here also it related to the meaning of HTML tags!

if we say <div> tag; that only means some section or division of the webpage. the reality is a web page contains numerous amounts of "div". So, people expect the respect developer, simply can't recognize the particular "div" by its tag name. so that we use semantic HTML tags instead of the parent "div". Child of those semantic HTML tags will be normal other tags (div, p and etc..).

Consider the below image as a webpage, then we use semantic HTML like this

semantic

these are some semantic HTML tags

semtags

the fact is - Semantic HTML using only for describes tags meaning to developers and browsers. Otherwise, it has no in-built styling property like h1, h2 and etc.

sem