Marking Navigation

Earlier versions of HTML didn’t have an element that explicitly represents a section of major navigation links, but HTML5 does: the nav element. Links in a nav may point to content within the page Image, to other pages or resources, or both. Whatever the case may be, use nav only for your document’s most important groups of links, not all of them.

Image These links (the a elements) represent an important set of navigation, so I’ve nested them in a nav element. Typically, you’ll mark up a list of links with the ul element (unordered list) ...

Get HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.