O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required