HOW TO CREATE NAVIGATION BAR

HOW CREATE NAV BAR . COPY THIS CODE & SAVE
"
<!DOCTYPE html>
<html>
<head>
<title>Introduse with html parts</title>
<style type="text/css">
.header{
width: auto;
height: 100px;
background-color: #458569;
color: blue;
text-align: center;
}
.container{
width: auto;
height: 500px;
}

.nav{
width: 30%;
height: 500px;
float: left;
background-color: #123456;
color: white;
margin-top: 0%;
text-align: center;
}

.main{
width: 70%;
height: 500px;
float: right;
background-color: pink;
color: white;
margin-top: 0%;
text-align: center;
}

.footer{
width: auto;
height: 100px;
background-color: #965874;
color: white;
text-align: center;
margin-top: -1.5%;
}



</style>

</head>

<body>

<div class="header"><h1>Header</h1></div>

<div class="container">
<div class="nav"><h1>NAV BAR</h1>

<h2><a href="#">Home</a><br>
    <a href="#">Register</a><br>
    <a href="#">About</a><br>
    <a href="#">Contact Us</a><br></h2>
</div>

 <div class="main"><h1>MAIN PART</h1></div>>

</div>
<div class="footer"><h1>FOOTER</h1></div>

</body>
</html>
"

Comments

Post a Comment