why i have to use <nav> element ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why i have to use <nav> element ?

i have the same result for the example in the slide without put <nav> element!...so why i have to type <nav> element?

8th Nov 2016, 6:51 PM
Ahmed Alfy
Ahmed Alfy - avatar
2 Answers
0
<nav> is a HTML5 tag which defines a block of links. All links should not be inside <nav> tag except the major blocks which helps readers to access the site easily. :)
8th Nov 2016, 7:28 PM
Rajib Kumar Bhowmik
Rajib Kumar Bhowmik - avatar
0
in HTML you don't need to use anything, <NAV> is an indication that the writer will be summing of a group of links.
9th Nov 2016, 12:39 AM
Machiel