I started using html tags on my pages and I am trying to determine what the proper use of the NAV tag is. I read the documentation and it seems that I should be fine with what I have, but I noticed that most other developers have their own βnavigationβ blocks in the tags βulβ βliβ. I am using a div.
My question is: what are the pros and cons of using "ul" "li" tags, not divs?
And will the next work with nav?
<nav> <div id="navBar"> <div id="navItem1"><a></a></div> <div id="navItem2"><a></a></div> <div id="navItem3"><a></a></div> <div id="navItem4"><a></a></div> </div> </nav>
source share