HTML <nav> tag
HTML <nav> tag : Definition
• The <nav> tag is used to declare a section that contains navigation links, either within current document or to another document.
• The links in nav element may navigate to other webpages or to different section of same webpage
Html <nav> tag example
<!DOCTYPE html>
<html>
<head>
<title>nav tag example</title>
<style>
.atc {
font-family: fantasy;
font-size:40px;
color:#090;
font-weight:bold;
text-align:center;
}
.nav_tag {
text-align:center;
margin:30px 0;
}
a{
color: blue;
text-decoration: none;
}
</style>
</head>
<body>
<div class = "atc">AimToCode</div>
<nav>
<a href = "http://aimtocode.com/">Home</a> |
<a href = "http://aimtocode.com/html-tutorial.php">HTML</a> |
<a href = "http://aimtocode.com/css-tutorial.php">CSS</a> |
<a href = "http://aimtocode.com/php-tutorial.php">PHP</a> |
<a href = "http://aimtocode.com/java-tutorial.php">JAVA</a>|
<a href = "http://aimtocode.com/python-tutorial.php">PYTHON</a> |
<a href = "http://aimtocode.com/mysql-tutorial.php">MYSQL</a> |
</nav>
</body>
</html>
AimToCode