DEV Community

loading...

Discussion on: Stop using so many divs! An intro to semantic HTML

Collapse
darkain profile image
Vincent Milum Jr

The primary reason I feel in love with these tags (and more in HTML5) is actually because of CSS. The styling becomes SO much easier and cleaner to read, too! Plus doing query selectors from JS as well.

Collapse
kenbellows profile image
Ken Bellows Author

Oh man, absolutely!

#main-content .blog-post .blog-section .section-header h1 { /*...*/ }

vs.

main article section header h1 { /*...*/ }