DEV Community

Discussion on: Web Development Bad Habits to Kick

Collapse
 
0826gm profile image
0826gm

I'd also mention using inline event listeners (JS) and using numbered IDs (or even worse, numbered classes), instead of just a single class on multiple elements (I mean, #tab1, #tab2 and #tab3 instead of just making each have a class .tab).

This second one is more common in case of beginners, while the first is present almost everywhere!