Using semantic HTML nav bar - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Nav Bar

Description

Using semantic HTML nav bar

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style>
header {<!--from ww w .  j a v  a  2s .c o m-->
   background:dodgerblue;
   padding:31px;
   width:100%;
   display:flex;
   justify-content:center;
   align-items:center;
}
</style> 
 </head> 
 <body translate="no"> 
  <header> 
   <nav> 
    <a>Lorem </a> 
    <a>Lorem </a> 
    <a>Lorem </a> 
    <a>Lorem </a> 
   </nav> 
  </header>  
 </body>
</html>

Related Tutorials