ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 4 Badge
Source Code
<!DOCTYPE html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <meta name="description" content=""> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" /> <title>Bootstrap 4 Badge Example</title> </head> <body> <div class="container mt-4"> <h1>Bootstrap 4 Badge</h1> <p>It is used to provide extra information to the specific content. To create a badge, add .badge class to the badge container element base class.</p> <h2> This is another example of badge <span class="badge">Read</span> </h2> <h3> This is last example of badge <span class="badge">Read</span> </h3> <h4> This is an example of badge <span class="badge">Read</span> </h4> </div> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> </body> </html>
Output :
Running