+ 1

<nav> tag Help!!!!

I'm stuck- I need to write an HTML element that uses the nav tag outlined in my coding boot camp lesson I'm blanking anyone know how to help me? 1<body> 2 3 4 5</body>

14th Jul 2017, 11:55 PM
Heather Reneé Tobler
Heather Reneé Tobler - avatar
2 odpowiedzi
+ 13
What is the problem...? It is just the tag generally used to insert a navigation menu, you could make something like: <body> <nav> <ul> <li>Home</li> <li>Portfolio</li> <li>Contact</li> <li>Map</li> </ul> </nav> </body> ... or from w3schools, let's see another example (shorter): <nav> <a href="/html/">HTML</a> <a href="/css/">CSS</a> <a href="/js/">JavaScript</a> <a href="/jquery/">jQuery</a> </nav> Not all links must be inside the <nav> tag, use it when you want to create navigation menu. It is a semantic element, not compulsory and personally i never used it yet. See this picture to understand better how the HTML5 semantic elements are generally positioned (generally, this is not the only way to use them): http://bit.ly/2tUOACs
15th Jul 2017, 12:03 AM
Maz
Maz - avatar
+ 1
thx yea I do use w3schools as well as I got stuck and frustrated and of course the answer was something simple I was thinking way to much into it. I thank you for replying and I saved the links I ended up figuring it out about 2 seconds before I saw your response
15th Jul 2017, 4:28 AM
Heather Reneé Tobler
Heather Reneé Tobler - avatar