---
title: "Nav tag in HTML5"  
description: "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"  
author: "Anonymous User"  
published: 2011-07-21  
updated: 2019-09-07  
canonical: https://www.mindstick.com/articles/575/nav-tag-in-html5  
category: "html5"  
tags: ["html5"]  
reading_time: 1 minute  

---

# Nav tag in HTML5

In [HTML5](https://www.mindstick.com/articles/1535/offline-add-edit-delete-data-in-html5-indexeddb) <nav> element is used to make [group](https://yourviews.mindstick.com/view/83502/uae-based-billionaire-yussuf-ali-s-lulu-group-enters-uttar-pradesh-supermarket) of [links](https://www.mindstick.com/blog/415/css3-links) or [navigation](https://www.mindstick.com/blog/62/different-navigation-in-asp-dot-net) 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](https://yourviews.mindstick.com/view/81700/shinzo-abe-resignation-marks-end-of-nationalist-legacy-in-japan) tag. In this example I had created three links and I want to [define](https://yourviews.mindstick.com/audio/1110/lifestyles-choices-that-define-our-lives) that links in <nav>tag, <nav> tag is used to to define [section](https://yourviews.mindstick.com/story/2851/is-c-section-bad) of navigation.\

##### Code:

```
<head>     <title>Nav tag</title></head><body><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></body>
```

##### Screenshot

![Nav tag in HTML5](https://www.mindstick.com/mindstickarticle/dbed829e-42f3-4e7f-8fc7-7567d1e8ad12/images/91e6f244-0031-4241-a622-f635649a679f.png)

---

Original Source: https://www.mindstick.com/articles/575/nav-tag-in-html5

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
