Hello guys, what's the difference between <nav> and <footer> also why do I need <header> in a code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hello guys, what's the difference between <nav> and <footer> also why do I need <header> in a code

can nav replace footer in a code?

31st Mar 2017, 12:50 PM
Emmanuel
Emmanuel - avatar
5 Answers
+ 3
In HTML5, different components of webpage have been semantically identified <header> tag is use to mark page header <nav> tag enmarks the navigation section of the page <footer> tag marks the footer section of the page Note: All of these are block level tags
31st Mar 2017, 1:15 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
+ 3
You can have <nav> block within <footer> block
31st Mar 2017, 1:16 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
+ 3
Block tag inserts a new line when it is closed.
31st Mar 2017, 1:19 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
+ 2
oh, thanks now I get
31st Mar 2017, 1:21 PM
Emmanuel
Emmanuel - avatar
+ 1
I'm sorry I'm asking again, but please i didn't really understand the block level tags
31st Mar 2017, 1:17 PM
Emmanuel
Emmanuel - avatar