Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
Bootstrap Badges Example
Keywords : badge, bootstrap, bootstrap badge, bootstrap 4 badge, badges in bootstrap, bootstrap badge example, bootstrap badge size, bootstrap badge circle, bootstrap badge css, bootstrap examples, tutorial
Example
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Badges Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script> <style> .bcontent { margin-top: 10px; } </style> </head> <body> <div class="container bcontent"> <h2>Bootstrap Badges</h2> <hr /> <button type="button" class="btn btn-primary"> Notifications <span class="badge badge-light">10</span> </button> <h2>News Feed <span class="badge badge-secondary">New</span></h2> <a href="#"><span class="badge badge-secondary">4</span> Mirror links</a> </div> </body> </html>
Click Here to See Result
Result
Previous
Next