Html 5 nav Tag

The <nav> tag was introduced in HTML 5. The <nav> tag indicate a part document of navigation. The <nav> tag did not exist in older version of HTML.if you need "Next" and "Previous" page navigation you can use to nav tag to inside of navigation.

Syntax:

<nav> .... </nav>

Example Code



<!DOCTYPE HTML>
<nav>
  <a href="mark.php">Previous </a>
  <a href="meter.php">Next </a>
</nav>

Out Put :

In the above example nav tag is used to next and previous for page navigation.