Home Tutorial Html Html5 HTML5 nav tag, Example of <nav> tag of HTML5.


Share on Google+Share on Google+
HTML5 nav tag, Example of <nav> tag of HTML5.
Posted on: September 10, 2010 at 12:00 AM
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="http://www.roseindia.net/tutorial/html/html5/HTML5hrTag.html">
<a href="http://www.roseindia.net/">Home</a>
<a href="http://www.roseindia.net/services/">next</a>

Download this code

Difference Between HTML5 and HTML4.01:

It is present only HTML5.


Related Tags for HTML5 nav tag, Example of <nav> tag of HTML5.:

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.

Posted on: September 10, 2010

Recommend the tutorial

Advertisements Advertisements