Horje

How to set Default CSS Settings on HTML <nav> Tag

Most browsers will display the <nav> element with the following default values:

index.html
Example: HTML
<!DOCTYPE html>
<html>
<style>
nav { display: block;
}
</style>
<body>
<h1>The nav element</h1>
<p>The nav element defines a set of navigation links:</p>
<nav>
<a href="/html/">HTML</a> |
<a href="/css/">CSS</a> |
<a href="/js/">JavaScript</a> |
<a href="/python/">Python</a>
</nav>
</body>
</html>

Output should be:

How to set Default CSS Settings on HTML <nav> Tag




Type :
html
Category :
Web Tutorial
Sub Category :
HTML Tag
Uploaded by :
Admin