<nav> Tag Syntax

Rules for coding HTML nav elements
<body>
   ...
   ... flow content expected ...
   <nav>
      ... flow content ...
   </nav>
   ...
</body>
  1. Inside an element where flow content is allowed, code one or more optional nav elements.
  2. 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.
  3. Include any HTML global attributes on the <nav> tag as appropriate.
  4. End the nav element with a matching </nav> closing tag.
  5. 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.