Home > Abakada: Back to Basics > Language References > HTML Elements > NAV Element
Represents a section of navigation links. | HTML 5 |
HTML Syntax
<nav
class = classname
id = value
style = css_style_rules
title = text
>
NOTE: Both start and end tags are required.
The <nav
> element represents a section of a page that links to other pages or to parts within the page.
A document may have several nav elements, for example, one for site navigation and one for intra-page navigation.
Not all groups of links on a page need to be in a nav element, though. The element is primarily intended for sections that consist of major navigation blocks.
User agents, such as screen readers targeting disabled users, can use this element to determine whether to omit the initial rendering of navigation-only content.
The <nav>
element has no attribute of its own, but supports global attributes common to all HTML elements.
The following example shows how the <nav
> element may be used.
Show me
ARTICLE ASIDE HEADER FOOTER MAIN SECTION