Hi! I’m quite new to codecademy (16th day here. ) and coding in general. But as I start doing more of my own projects I was wondering something.
When I look at websites with google dev tools I see an ocean of
<div> tags. Within codecademy exercises I’ve only ever used the
<div> tag on select occasions, but mostly I go for
<header>,<nav>,… and more specific tags to divide my coding.
So I’m really confused on when to best use
<div> in general or if there’s a “best practice” on how to include it in my code, since it seems like something essential if I look at websites “in the wild”.
For example the Cheat Sheet exercise seems pretty straight forward, and the sample solution looks kind of like what I came up with. But compared to when I did Dasmoto’s Arts and Crafts the solution had a LOT of
Should I include them in future projects? And if yes, how’s the best way to do so?
Thanks for the help and happy coding!