Bootstrap Badges

Badges are similar to labels; the primary difference is that the corners are more rounded. 

To use badges just add <span class = "badge"> to links, Bootstrap navs, etc. 

You can try to run the following code to implement badges in Bootstrap


Live Demo

<!DOCTYPE html>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
      <a href = "#">Mailbox <span class = "badge">50</span></a>

karthikeya Boyini
karthikeya Boyini

I love programming (: That's all I know

Updated on: 12-Jun-2020


Kickstart Your Career

Get certified by completing the course

Get Started