DEV Community

Clean your code from HTML tags with Styled Components magic

Nicolas Accetta on September 20, 2019

How many times have you looked at your code looking for a specific div, and wasted several minutes until you found it. Or maybe you didn't event fi...
Collapse
 
yvonnickfrin profile image
🦁 Yvonnick FRIN

Nice article! Just an advice to avoid looking for a specific div. There are a lot of tags in html that have meaning like main, header, nav, footer, ... It helps organizing your markup and makes the information more accessible for screen reader I guess 👍

Collapse
 
niconiahi profile image
Nicolas Accetta

totally man. I just used div as it's the most common one and anyone who's new to programming can relate. Thanks for the advice