title: CSS HTML <a> </a> tags appearing on Nav bar
body: <p>I have an issue that I have not experienced before and I am hoping to get some information on it. I have a nav bar that is displayed at the top on a webpage and for some reason when the code is run, the browser adds some a>/a> tags which cause my links to have some... disposition themselves. I am hoping to find out how to stop this from happening. Below is an example of the code.</p>
  
  <hr>
  
  <h2>My code:</h2>
  
  <pre><code>&lt;nav&gt;   
      &lt;ul id="LevelMenu"&gt;
          &lt;?php if($currentuser['userlevel']==0) { ?&gt;
          &lt;li&gt;&lt;a href="register.html"&gt;Register New Account&lt;/a&gt;&lt;/li&gt;
          &lt;?php } else { 
                  if($currentuser['userlevel']==1) { ?&gt;
          &lt;li&gt;&lt;a href="inactive.php"&gt;Account Panel&lt;a&gt;&lt;/li&gt;
                  &lt;?php } else { ?&gt;
          &lt;li&gt;&lt;a href="user.php"&gt;Account Panel&lt;a&gt;&lt;/li&gt;
              &lt;?php if($currentuser['userlevel']&gt;2) { ?&gt;
          &lt;li&gt;&lt;a href="admin.php"&gt;Administration&lt;/a&gt;&lt;/li&gt;
              &lt;?php }
                  } ?&gt;
          &lt;li&gt;&lt;a href="php/logout.php"&gt;Log Out&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="addarticle.php" id="addarticle"&gt;Add Article&lt;/a&gt;&lt;/li&gt;
          &lt;?php } ?&gt;
      &lt;/ul&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <hr>
  
  <h2>Code on Browser:</h2>
  
  <pre><code>    &lt;nav&gt;
      &lt;ul id="LevelMenu"&gt;
                  &lt;li&gt;
                    &lt;a href="user.php"&gt;Account Panel&lt;/a&gt;
                      &lt;a&gt;&lt;/a&gt; 
                  &lt;/li&gt;
                      &lt;a&gt;&lt;/a&gt;
                  &lt;li&gt;
                      &lt;a&gt;&lt;/a&gt;
                    &lt;a href="index.php"&gt;Home&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;
                    &lt;a href="admin.php"&gt;Administration&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;
                    &lt;a href="index.php"&gt;Home&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;
                    &lt;a href="php/logout.php"&gt;Log Out&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;
                    &lt;a href="addarticle.php" id="addarticle"&gt;Add Article&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <hr>
  
  <h2>Result:</h2>
  
  <p><a href="https://i.stack.imgur.com/FsqYE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FsqYE.png" alt="enter image description here"></a></p>