Originally published on CodingCush .
HTML semantic tags are elements that clearly describe their meaning and the type of content inside them, for both browsers and people reading the code. Tags such as header, nav, main, article, section and footer tell everyone what each part of a page is for, without guessing from class names. A header is for introductory content, nav is for main links, main holds the primary content, article holds a self contained piece, section groups related content, and footer holds closing information. Using them makes your pages easier to read, more accessible for screen readers, and clearer for search engines.
What Are Semantic Tags, in Simple Words?
The word semantic simply means related to meaning. A semantic tag carries meaning in its name. When you see a nav element in code, you instantly know it contains navigation links. When you see a generic div element, you know almost nothing.…