Why the header, navigation,footer etc tags are used instead of div in html5?? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Why the header, navigation,footer etc tags are used instead of div in html5??

I cant understand it properly can anyone's help me.

21st May 2018, 8:54 PM
Ali Abbas
Ali Abbas - avatar
3 Réponses
+ 1
I don‘t know if this is the reason but for blind people these tags are really useful because it makes it easy for text to sound programs to choose what to read to them. It gets also probably used by search engines to identify content
21st May 2018, 9:02 PM
Max
Max - avatar
+ 1
They make your code more readable and logical, look at them like if they were containers to some specific tags for title like <header>, others for your main content <article><section>, extra content <aside>, hyperlinks <nav>.
21st May 2018, 9:13 PM
Christopher Aguilar
Christopher Aguilar - avatar
+ 1
Its semantic mean.... div has generic container meab but navigation, footer and header have a specific semantic mean
21st May 2018, 9:33 PM
KrOW
KrOW - avatar