title: How to make a functional HTML5 navbar
body: <p>I’m trying to practice my HTML5 and CSS3 skills by making a navbar for my page, but I’m having a lot of trouble. I'm trying to use HTML5 semantic tags to make it, but none of them are looking how I want them to and it is a huge positioning mess. Could someone please tell me how I could make a functional navbar?</p>
  
  <p>Here’s my HTML code for the whole navbar and header:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body {
      margin:0;
  }
  
  #nav-plus-head-wrapper {
      background: blue;
      height: 100px;
      position: absolute;
      top: 0px;
      left:0px;
      right:0px;
  }
  
  #topheader {
  
  }
  
  #topnav {
      background: yellow;
      position: relative;
      top: 0px;
      right: 0px;
  }
  
  .navli {
      display: inline;
  }
  
  a:link {
      text-decoration: none;
      color: red;
  }
  
  a:hover {
      text-decoration: none;
      color: orange;
  }
  
  a:visited {
      text-decoration: none;
      color: white;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;section id="nav-plus-head-wrapper"&gt;
  
      &lt;!--CODE FOR WEBSITE NAME--&gt;
      &lt;header id="topheader"&gt;
          &lt;h1&gt;Site&lt;/h1&gt;
      &lt;/header&gt;
  
      &lt;!--CODE FOR TOP NAVBAR--&gt;
      &lt;nav id="topnav"&gt;
          &lt;ul id="topnav-ul"&gt;
              &lt;li class="navli"&gt;&lt;a href=""&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li class="navli"&gt;&lt;a href=""&gt;About&lt;/a&gt;&lt;/li&gt;
              &lt;li class="navli"&gt;&lt;a href=""&gt;Services&lt;/a&gt;&lt;/li&gt;
              &lt;li class="navli"&gt;&lt;a href=""&gt;Contact&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/nav&gt;
  
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </p>