How to have a link that looks like a button with bootstrap

Published: May 25, 2018

DMCA.com Protection Status

To get a html link that looks like a button with bootstrap, just add class="btn btn-info" in the balise a:

<a href="" class="btn btn-info">link</a>

Examples by changing info to default or success

How to have a link that looks like a button with bootstrap
How to have a link that looks like a button with bootstrap

Code source

<!DOCTYPE html>
<html lang="en">
<head>

  <title>Bootstrap Example</title>

  <meta charset="utf-8">

  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

  <style>
  body {
  padding-top: 50px;
  background-color:#FFFFF; 
  }
  </style>

</head>
<body>


<div class="container">

<div class="row">
<div class="col-md-4">

<a href="https://www.w3schools.com/html/html_links.asp">link 1</a>

<br><br>

<a href="https://www.w3schools.com/html/html_links.asp" class="btn btn-info">link 2</a>

<br><br>

<a href="https://www.w3schools.com/html/html_links.asp" class="btn btn-default">link 3</a>

<br><br>

<a href="https://www.w3schools.com/html/html_links.asp" class="btn btn-success">link 3</a>

</div>
</div>
</div>

</body>
</html>

References

Link Source
How to make [HTML REMOVED] link look like a button? stackoverflow
buttons bootstrap
link w3schools
Image

of