Make Bootstrap Button look like a link

In Bootstrap we can make a button have various colors by setting various class types e.g. : btn btn-info, btn btn-primary etc.

We can also make a button look like a link (an anchor tag) using the class btn btn-link,

Let's see an example :

<!DOCTYPE html>
<html lang="en">
  <title>Bootstrap : Button as link</title>
  <meta charset="utf-8">
  <link rel="stylesheet" href="">
  <script src=""></script>
  <script src=""></script>
<button type="button" class="btn btn-link">This is a button, but looks like a link</button>

Output :
button as link output
button as link output
Try Out Code2care Dev Tools:


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.