Day 22 # Why Semantic HTML is important?
Because semantic HTML uses elements for their given purpose, it’s easier for both people and machines to read and understand it.
Examples of non-semantic elements:
<span> - Tells nothing about its content.
Examples of semantic elements:
<article> - Clearly defines its content.
Semantic Elements in HTML
Many web sites contain HTML code like: <div id="nav"> <div class="header"> <div id="footer"> to indicate navigation, header, and footer.
In HTML there are some semantic elements that can be used to define different parts of a web page: