HTML Form How to - Style button as link








Question

We would like to know how to style button as link.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
button {<!--  w w w  .  j  av a2 s . co  m-->
  background: none !important;
  border: none;
  padding: 0 !important;
  /*optional*/
  font-family: arial, sans-serif; /*input has OS specific font-family*/
  color: #069;
  text-decoration: underline;
  cursor: pointer;
}
</style>
</head>
<body>
  <button>your button that looks like a link</button>
</body>
</html>

The code above is rendered as follows: