make a hyperlink work like a button - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:a

Description

make a hyperlink work like a button

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">

a {<!--   w  w w  .j  av a2s  .  c o m-->
   -moz-appearance: button;
   text-decoration: none;
   color: black; }


      </style> 
 </head> 
 <body> 
  <a href="#" onclick="alert('hi.'),false">Click</a>  
 </body>
</html>

Related Tutorials