Bootstrap 4 Badges
Bootstrap 4 Badges component
Bootstrap labels and badges help you highlight additional information about the content. Used for product badges, article tags and other labeling components.
Basic Bootstrap 4 version
<h1>Example heading <span class="badge badge-primary">New</span></h1>
Above is an example template for a Badges in the Bootstrap 4 version based on jQuery. V4 is an older version of Bootstrap and we discourage implementing it in new projects.
Below you will find the same component but in the latest, more modern Bootstrap 5. We encourage you to use the v5 version instead, the v5 is more lightweight, more reliable and based on pure JavaScript instead of jQuery.
This page only compares the two version, you can find full documentation - with multiple options & API details via one of the links below:
Bootstrap v5 - full documentation
Bootstrap v4 - full documentation
Basic Bootstrap 5 version
Example heading New
<h2>Example heading <span class="badge badge-primary">New</span></h2>