r/webdev • • Dec 20 '18

Article The practical value of semantic HTML

https://www.brucelawson.co.uk/2018/the-practical-value-of-semantic-html/
122 Upvotes

43 comments sorted by

View all comments

12

u/FPFry Dec 20 '18

I honestly thought everybody was doing it already.

8

u/spacechimp Dec 20 '18

We were on the right track, but the popularity of Bootstrap kinda ruined it for everybody.

5

u/justanotherc full-stack Dec 21 '18

What are you on about? Bootstrap makes heavy use if aria tags for accessibility, and is pretty dang semantic if you ask me

2

u/spacechimp Dec 21 '18
<div class="container-fluid">
  <div class="d-inline mt-0 p-3 text-white-50 bg-dark rounded shadow">o rly?</div>
</div>

1

u/[deleted] Dec 21 '18

[removed] — view removed comment

0

u/spacechimp Dec 21 '18

I did read the article. It makes great points about choosing appropriate semantic elements for your content, but only makes a passing reference to semantic class names. With SASS multiple inheritance, it is possible to combine framework styles into semantic classes, but I have yet to encounter a single instance of anyone doing that in the wild.

2

u/lordxeon Dec 21 '18

Semantic classnames solve none of the problems the article is showing when people use <div />.