HTML <nav> Tag

The HTML <nav> Tag is used to represent a section that contains navigation links, either within the current document or in another document. Examples of some navigation links are menu, table of contents, index, etc. They have to be made clear.

The <nav> Tag is a newly added tag in HTML5.

Note:- You can use multiple links within a page, but all links must be placed inside the nav tag. The <nav> Tag should contain only one major block of navigation links.


<!DOCTYPE html>
    <meta charset="utf-8">
        HTML Nav Tag
<style type="text/css">
    padding: 0;
    margin: 0;
    box-sizing: border-box;
background: lightblue;
nav ul{
    padding: 0;
    text-align: center;
  nav ul li{
    list-style: none;
    display: inline-block;
    padding: 10px 50px;
    font-size: 25px;
<h1 style="margin-bottom: 50px;text-align: center ;">This is HTML nav Example</h1>    




Sticky Header on Scroll Only HTML and CSS

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *