News for hackers. Stuff that matters.
Re:Stop using so many divs An intro to semantic HTML by CM30 on Sunday April 28, 2019 @01:03PM (#19772223)
Nice article, especially how it explains just how you can use said semantic elements for more readable source code.

And yeah, there's no reason not to use semantic HTML now, or to create sites/apps infected with divitis. Things like article, aside, footer, header, nav, section, etc have been supported in almost all browsers for years now, and main has pretty much unanimous support too. Unless you're designing for IE 8 (in which case your app probably won't work anyway), there's no reason to use so many divs.

Re:Stop using so many divs An intro to semantic HTML by octosphere on Sunday April 28, 2019 @12:16PM (#19771926)
To save some bytes i like to use <i>. It makes any text italic, but that can be fixed with some styling.
Re:Stop using so many divs An intro to semantic HTML by two2two on Sunday April 28, 2019 @02:18PM (#19772709)
The html <em> tag is the current best practice for this from my understanding.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em