Their behavior is almost the same as <p>, but they are given semantics.
By using semantic markup, you can improve the readability of your code, allow browsers to better optimize your web pages (especially on mobile terminals), and allow search engine crawlers to better understand your web pages.
In fact, it means literally. The purpose is to let others know what this block is for after seeing it. This way the entire document makes sense to read (compared to p). Personal opinion, for reference only.
The following story is purely fictional. Although it is beautiful, it is wrong. If you have any questions, please read @Evian’s reply.
In html, all tags are treated equally, so N years ago, you could see a page like this.
Later, tags evolved.
Subsequently, html became more standardized:
html continues to evolve:
In short, it is becoming more and more semantic. Even in html5, you can still develop a website using only p.
This is an article I wrote before:
Their behavior is almost the same as
<p>
, but they are given semantics.By using semantic markup, you can improve the readability of your code, allow browsers to better optimize your web pages (especially on mobile terminals), and allow search engine crawlers to better understand your web pages.
Full text: http://jyprince.me/program/656
Web pages are not just for viewers to see, nor are they only for mainstream browsers to parse.
Search engine spiders, page readers used by blind people, etc. Do you know the benefits of semantic tags?
In fact, it means literally. The purpose is to let others know what this block is for after seeing it. This way the entire document makes sense to read (compared to p). Personal opinion, for reference only.