<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Badge</h2>
<p>The .badge class indicates new or unread items (will automatically collapse when there are no new or unread items, via CSS's :empty selector):</p>
<p><a href="#">Inbox <span class="badge">17</span></a></p>
</div>
</body>
</html>