r/learnwebdev • u/UnderPressureICrackn • Jan 13 '20
Question about "Div-itis"
So, I am learning HTML, CSS, and JavaScript first. I went through the HTML and CSS portions, and am currently on JS. However, I was curious about this "div-itis" I keep hearing about. I get what it is...and I get how to avoid it (kinda) What I am curious about it when to use it properly. In what situations would it be a good idea to use the <div>?
2
Upvotes
View all comments
Show parent comment
1
u/UnderPressureICrackn Jan 13 '20
Thank you! I get that divs should be used as wrappers and containers for layout purposes, but is that not what CSS is used for? Like adding classes or ids? Do all webdevs use CSS? Or not all do?