0
Why we use different tags like div, section, header etc. when they have a similar function?
4 Réponses
+ 1
It's for make code more easier to read
+ 1
In term of styling, they are the same. Semantically different.
0
Sharjeel Faiq hi,
Browser and search engine use their meanings.
These three ressources have common content, plus some stuff about search bot.
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_HTML_sections_and_outlines
https://www.pluralsight.com/guides/semantic-html
https://www.semrush.com/blog/semantic-html5-guide/amp/