Bootstrap 4 Tags
Append and highlight additional information to a string of text with a stylized tag.
Bootstrap's tag classes can be used to highlight additional information that's appended to a string of text.
To create a tag, apply the
.tag class, as well as one of the
.tag-* classes to the
<span> element that represents the tag.
Here we create a default tag by using
The following contextual classes are available for tags.
Make the corners more rounded with Bootstrap's
New in Bootstrap 4
Bootstrap 4 is currently in alpha release, therefore, do not use it in production yet. To be safe, refer to Bootstrap 3 Tags until Bootstrap 4 becomes an official release.
Also check out the differences between Bootstrap v3 and v4.