Bootstrap Tutorial - Anchor Button








Other than button tag we can use the button classes on an <a>, <button>, or <input> element.

Example

<!DOCTYPE HTML>
<html>
<head>
<link href="http://java2s.com/style/bootstrap.min.css" rel="stylesheet">
</head><!--from   w ww .  ja  v a2 s  . c o m-->
<body style='margin: 20px;'>

  <a class="btn btn-default" href="#">Link</a>
  <button class="btn btn-default" type="submit">Button</button>
  <input class="btn btn-default" type="button" value="Input">
  <input class="btn btn-default" type="submit" value="Submit">


</body>
</html>

Click to view the demo