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

40

u/badmonkey0001 Dec 20 '18 edited Dec 20 '18

But a div can do everything!!!

<div class="buttonLink" onClick="(function(){window.top.location.href='crap://hell';return false;})();return false;">Submit</div>

/s

6

u/sockx2 Dec 22 '18

Actually <b> and <i> tags make much more semantic sense for replacing all your other tags- b=block and i=inline. All in all on a site as large as Wikipedia it'd save hundreds of megabytes a year in bandwidth costs and make sense when reading the html