Why are we taught divs when we are told to use header and nav instead?


If symantic HTML is more readable by the browser and makes it easier to understand html content then why learn div’s in the first place? Why not just learn symantic HTML from the outset?


Hey @stevesmith1802631825!

So if I understand correctly, your question is why do we learn divs when we are taught that header and nav are better to use.

I would say that the reason for this is because many people still use div instead of semantic HTML, so it is good to have a familiarity with divs

Hope this helps!


Ok that makes perfect sense, I also just learnt that this is a new feature in html5 which would back up your theory as I imagine there are a lot of people out there who may not be familiar with the use of Semantic html or have used div’s on their sites that were built before html5.

Many thanks for your reply and help.


1 Like