Make a navigation button using a div with a link inside it - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:a

Description

Make a navigation button using a div with a link inside it

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

h1 {<!--   www .java 2  s  .  c  om-->
   color: blue;
}
a {
   color: blue;
   text-decoration: none;
   border : 1px solid black;
   padding : 10px;
   background-color : cyan;
   border-radius: 10px;
   appearance: button;
}
a:hover {
   background-color: yellow;
}


      </style> 
 </head> 
 <body> 
  <div> 
   <p> <em>Click here:</em> <a class="w3-btn" href="http://www.w3schools.com">Link Button</a> </p> 
  </div>  
 </body>
</html>

Related Tutorials