Are there some noticeable outcomes in terms of performance or other aspects to follow semantic HTML?
Thanks
Semantic markup isn't about performance, it's about meaning.
Let's imagine two parallel universes.
. How would you specify where styles should be applied? How would browsers know how to render the page? How would screen readers for the blind differentiate between headlines and text and footnotes and menu items? You'd have to add all kinds of awkward attributes.
and
and
and
and
and
and
, etc. Now a user agent (a browser or screen reader) can make reasonable assumptions about how to style those, or make them interactive, or read them aloud. For example, a browser will make
s look clickable and will enable moving between them with the tab key, whereas if you use a
- 热议问题