DEV Community

Discussion on: Semantic elements in HTML

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

The most important reason, semantic html helps assistive technologies to read what a user is currently viewing in the case where the user is visually impaired. When used correctly there is no need to apply a role attribute, for this reason not only the html5 semantic have some importance but generally correct html means better user experience for all.

Collapse
 
dmbaturin profile image
Daniil Baturin

We shouldn't forget semantic inline elements too. They also play a role in accessibility.
It helps that most non-semantic inline elements are deprecated and forgotten now, like <b> or <i>. However, there still are abominations like <span class="bold"> in the wild.
Elements like <strong> or <em>, <address>, <abbr> say what their content is and you still can style them however you want.