Put anchor link in UL list - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:a

Description

Put anchor link in UL list

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Page Title</title> 
 </head> <!--   w w w  . j a  va 2 s . c o  m-->
 <body> 
  <nav class="nav-container"> 
   <ul> 
    <a class="atag" href="#"> <li class="nav-link active">Home</li> </a> 
    <a class="atag" href="#"> <li class="nav-link active">Blog</li> </a> 
    <a class="atag" href="#"> <li class="nav-link active">Store</li> </a> 
    <a class="atag" href="#"> <li class="nav-link active">Contact</li> </a> 
   </ul> 
  </nav>  
 </body>
</html>

Related Tutorials