Home > DeveloperSection > Beginner > Nav tag in HTML5

Nav tag in HTML5

0 Comment(s)
 3970  View(s)
Rate this:

Nav tag in HTML5

In HTML5 <nav> element is used to make group of links or navigation links. <nav> tag is supported only in html5. If we want a group of related links, then we will use <nav> tag. It has both start and end tag. In this example I had created three links and I want to define that links in <nav>tag, <nav> tag is used to to define section of navigation.



    <title>Nav tag</title>



<h1>This is a nav tag demo</h1>

<nav> <!--using nav tag to define group of links-->

<a href="http://www.mindstick.com">Home</a>

<a href="http://www.mindstick.com/DevelopersSection.aspx">Next</a>

<a href="http://www.mindstick.com/DevelopersSection.aspx">Prevoius</a>




Nav tag in HTML5

Don't want to miss updates? Please click the below button!

Follow MindStick