DEV Community

Discussion on: 9 Web Development Best Practices for 2021

Collapse
 
fjones profile image
FJones

The example of #header in particular is rather poorly chosen. <header> is a very good and descriptive replacement for ye olde <div id="header">. With complex layouts you'll still end up with div soup, but I would even disagree with the point entirely: browser dev tools render succinctly without comments, and your templating language (especially in JS-heavy environments) should support sufficient encapsulation to make the individual div soups relatively shy of nesting.

Thread Thread
 
ash_bergs profile image
Ash

Your and InHuOfficial's comments are good points! Semantic HTML always wins.