+ 1

what <nav> works for?

I mean what is navigational section?

25th May 2019, 11:28 PM
Mati Man
Mati Man - avatar
3 Answers
25th May 2019, 11:52 PM
JTLZ
+ 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
26th May 2019, 12:27 AM
Rubel Hossain
Rubel Hossain - avatar
+ 1
Nav = Navigation bars. It's kind of comtainer of the navigation bars. It's not necessary to use it though.
26th May 2019, 7:10 AM
Ginfio
Ginfio - avatar