Current Assignment(s)
P2: The Instructables Site
Due: Recommended by Monday, 6.04
Due: Recommended by Monday, 6.04
The <nav> Element
With HTML5 came the nav element. A <nav>
block can contain your site’s major page or intra-page links, and can be used to declare a menu, table of contents, or site index.
Using the <nav>
element is considered good practice because of its accessible features, but is also useful for styling purposes.
HTML
<body>
<nav id="main-menu">
<!-- Site Links -->
</nav>
<!-- Further page content -->
</body>
IMPORTANT: As with anything you want visible to users, the <nav>
element must be within the <body>
of the page.
- Previous
- Next