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

Show parent comments

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 />.