Chapter 3: Navigation bars.

475 5 1
                                        

Navigation bars are the pages director. So at the top of the webpage you would have the navigation bar. The navigation bar pages normally has a homepage, about us and contact us but really its all up to you. The code for a navigation bar is:

<!DOCTYPE html>
<html>
<head>
<style>
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

li {
    float: left;
}

a:link, a:visited {
    display: block;
    width: 120px;
    font-weight: bold;
    color: #FFFFFF;
    background-color: #98bf21;
    text-align: center;
    padding: 4px;
    text-decoration: none;
    text-transform: uppercase;
}

a:hover, a:active {
    background-color: #7A991A;
}
</style>
</head>
<body>

<ul>
  <li><a>Home</a></li>
  <li><a>About</a></li>
  <li><a>Contact</a></li>
  <li><a>Help</a></li>
</ul>

</body>
</html>

If you want to change the text on the buttons you would change the bold text. As this nav bar uses a bit of CSS you shall learn a bit more about it soon and how to change the colour and all that jazz! But if you can't wait just E-mail us at code@webexlz.com

I hope it helped.

©2016 Webexlz

Learn HTMLWhere stories live. Discover now