<nav> Tag Syntax
Rules for coding HTML nav
elements
<body> ... ... flow content expected ... <nav> ... flow content ... </nav> ... </body>
- Inside an element where flow content is allowed, code one or more optional nav elements.
- Begin each nav element with a starting <nav> tag. The element name uses lower case letters and should be in the HTML namespace, which it will pick up automatically from the
xmlns
attribute on the <html> tag. - Include any HTML global attributes on the <nav> tag as appropriate.
- End the nav element with a matching
</nav>
closing tag. - Inside the nav element, code the appropriate flow content.
<nav> Content Model
Content of the <nav> Tag
The content of the nav element can include HTML comments, text content and any tags that can be used in flow content.