Bootstrap Badges

BootstrapWeb DevelopmentCSS Framework

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

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <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>
   </head>
   <body>
      <a href = "#">Mailbox <span class = "badge">50</span></a>
   </body>
</html>
raja
Updated on 12-Jun-2020 17:28:23

Advertisements