Share on Google+Share on Google+

HTML5 nav tag, Example of <nav> tag of HTML5.

In this section, you will see the use of implementation of <nav> tag.

HTML5 nav tag, Example of <nav> tag of HTML5.


The <nav> tag is present only in HTML5. It does not support HTML4.01. It makes group of related links or a section of navigation links. Ex home, next, previous, contact us, etc. It is not important, that all links of page should be inside <nav> tag.
If we wants a group of related links, then we will use <nav> tag. It has both start and end tag.

Declaration Syntax :
Declaration syntax of <nav> in HTML5.
<nav> Navigation controls </nav>

Example of <nav> in HTML5:

<!doctype html>
<html >
<title>navigation tag Example.</title>
<h2>Example of &lt;nav&gt; navigation tag of HTML5.</h2><nav>
<a href="">
<a href="">Home</a>
<a href="">next</a>

Download this code

Difference Between HTML5 and HTML4.01:

It is present only HTML5.


Posted on: September 10, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.