+ 1
what <nav> works for?
I mean what is navigational section?
3 Réponses
+ 11
https://www.sololearn.com/learn/HTML/2199/
You can learn it here
+ 2
<nav> section is used to create menus as it says "navigation" .
Nav itself is a HTML5 Semantic element like others <header>, <menu>,<nav>,<content>,<aside>,<article> ,<footer> etc and they got NO EFFECTS itself.
It works like the same as <div> which is a non-semantic element. So the only reason people use semantic elements is for SEO and easy code readability.
Uses:-
Semantic way:-
<header>
<img alt="logo">
<h1>Company Name<h1>
</header>
Non-Semantic Way:-
<div id="header">
<img alt="logo">
<h1>Company Name<h1>
</div>
learn More HTML5 Semantic Elements here:-
https://www.w3schools.com/html/html5_semantic_elements.asp
+ 1
Nav = Navigation bars.
It's kind of comtainer of the navigation bars.
It's not necessary to use it though.