You should use semantic tags when you want to mark up a content block that has an important role in the document structure. As the use of visually designed layouts progressed, programmers started to use a generic “non-semantic” tag like
. The
and
elements are conceptually similar and interchangeable. Sectioning Content in HTML5 - div or section or article? It is just describing its content, not prescribing presentation. While humans can read time that can disambiguate through context in the normal way, the computers can read the ISO 8601 date and see the date, time, and the time zone. What does 'levitical' mean in this context? Examples of Span vs Div Tags. Since October 2014, HTML4 got upgraded to HTML5, along with some new “semantic” elements. Semantic elements means Elements with meaning. Semantic HTML. Most HTML tags can be shuffled broadly into two categories: presentational elements and semantic elements. Semantic markup: Why
instead of
? A semantic element clearly describe its meaning to both the browser and the developer. An example of semantic element layout by w3schools. “The div element has no special meaning at all…Authors are strongly encouraged to view the div element as an element of last resort, for when no other element is suitable. As HTML5 is still relatively new, this use of non-semantic elements is still very common on websites today. Why does HTML think “chucknorris” is a color? @Anthony Thanks for pointing me to this link; that's defo something I need to read up on! When you use section tag for appropriate content, it can be used for search engine optimization also. Both these elements are used for sectioning a content, and yes, they can definitely be used interchangeably. These elements clearly describes its meaning to both browser as well as to the developer. Semantic elements’ benefits for accessibility Unfortunately, while validation is a relatively easy task to understand and achieve, creating semantically correct HTML is a lot more subjective and open to debate. Semantic markup semantic forms markup(div vs br) Dear Friends! This means any HTML processor in the future will be able to understand it and present it correctly to users. Why bother with