The Complete WebDeveloper (38 Blogs) Become a Certified Professional

How To Best Utilize HTML Nav Tag?

Last updated on Apr 17,2024 700 Views


In this world of internet we have gotten used to browsing web pages. This also involves jumping from one page to the other. Hence when it comes to designing web pages, it becomes very important to incorporate this feature in your scheme of things. HTML Nav Tag helps you achieve the exact phenomenon. This article will help you this concept in detail.

Following pointers will be covered in this article,

So let us get started then,

HTML Nav Tag

In this the HTML <nav> tag specifies a section which contains only navigation link. The <nav> tag in HTML in other words, nav element represents section of the page and it’s purpose is to provide the navigational links. It can also used to define the block of navigation links within the the current document or to the other document. This < nav> tag is mainly used to navigate the link to particular document within it or the other document. Below giving an example code for using <nav> tag and showing the output.

Now that we know what the concept is, let us take a look at a sample program and understand HTML Nav Tag better

Example:

<!DOCTYPE html>
<html>
<head>
<title>HTML Nav tag</title>
</head>
<body>
<p>Programming languages:</p>
<nav>
<a href="java/index.htm">Java</a> |
<a href="python/index.htm">Python</a> |
<a href="html/index.htm">HTML</a> |
<a href="raspberry pi/index.htm">Raspberry pi</a> |
<a href="C++/index.htm">C++</a>
</nav>
</body>
</html>

Output is as below:

Output - HTML Nav Tag - Edureka

So this is it, this brings us to the end of this article. I hope this informative for you.

Now that you know what is HTML, check out the Web Development Certification Training by Edureka. Web Development Certification Training will help you Learn how to create impressive websites using HTML5, CSS3, Twitter Bootstrap 3, jQuery and Google APIs and deploy it to Amazon Simple Storage Service(S3). 

If you want to get trained in React and wish to develop interesting UI’s on your own, then check out the React.js Training Course by Edureka, a trusted online learning company with a network of more than 250,000 satisfied learners spread across the globe.

Got a question for us? Please mention it in the comments section of “What is HTML?” and we will get back to you.

Comments
0 Comments

Join the discussion

Browse Categories

webinar REGISTER FOR FREE WEBINAR
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP

Subscribe to our Newsletter, and get personalized recommendations.

image not found!
image not found!

How To Best Utilize HTML Nav Tag?

edureka.co