What is Semantic HTML and why you should know about it?

html-title-image

Overview

Merriam Webster defines the word Semantic as of or relating to meaning in language.The meaning of the technical term semantic is no different. Semantic HTML means using meaningful tags, elements which will make sense for developer as well as the user. There are many special purpose elements in HTML, which we should use for their intented purpose as much as possible. Let's know why but first lets see some examples of semantic HTML elements.

<form>, <article>, <button>, <footer> etc

Why should we use these?

Why to use Semantic HTML when we can use CSS and Javascript to make any element behave in any way we want? Why should I use <button> to create a button when I can use <div> for creating almost everything including a button.

Look at some points. If we use semantic HTML tags then:

These are some of the roughly 100 semantic elements available to use and make things easier. According to the W3C: "A semantic Web allows data to be shared and reused across applications, enterprises, and communities." Learn more about these new HTML5 elements here: