Articles → HTML 5 → nav tag in HTML5

nav tag in HTML5






Purpose





Syntax


<nav>
        Navigation links
</nav>



Example


<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
    
</head>
<body>
    <nav>
        <a href="http://google.com">Google</a> |
        <a href="http://bing.com">Bing</a> |
    </nav>
</body>
</html>



Output



Click to Enlarge


Browser support


Internet ExplorerFirefoxChromeSafariOperaEdge
9.04.06.05.011.1Yes



Video





Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, December 27, 2016
 
Updated On  -  Thursday, January 03, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250