nav tag


Prev Tutorial Next Tutorial

nav tag

Html5 introduce new tag <nav> for navigation of links on web page. Before this tag for navigation we use like <div class=menu> and class menu related style written in css file.

Note: Not all links of a document should be inside a <nav> tag. This tag are used only for major block of navigation links.

Syntax

<!DOCTYPE>
<html>
<head>
<style>
nav
{
	color:blue;
}

</style>
</head>
<body>
<nav>
<a href="#">Java</a>
<a href="#">php</a>
<a href="#">Html</a>
</nav>
</body>
</html>

Result

Browser supported

Element
<nav>YesYesYesYesYes

Prev Tutorial Next Tutorial

Advertisements




Download Projects