VOOZH about

URL: https://www.geeksforgeeks.org/bootstrap/how-to-put-a-badge-in-a-table-cell-using-bootstrap/

⇱ How to put a badge in a table cell using Bootstrap? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to put a badge in a table cell using Bootstrap?

Last Updated : 23 Jul, 2025

In this article, we will learn how to use badges in a table cell using Bootstrap. We will first learn how to use Bootstrap Badges and then add them inside cells of a table.

Bootstrap Badges: Responsive Badges are included with the newest Bootstrap version. Badges add additional info like count or label to any content. The styling of badges provides a visible cue of their purpose. These badges can appear at the tip of a sentence, link, or button. The example below demonstrates Bootstrap badges.

Example: Here we will use the badges in normal form, in the next example we will use that in a table cell.

Output:

👁 Image

Badges in a Cell: The badges can be placed in a table cell by simply including the division containing the badge in one of the table cells. This can be used to highlight some text in the table. The below examples demonstrate the use of badges inside a table cell.

Example 1: In this example, we will show the badges in the first column and other text in the second column.

Output:

👁 Image

Example 2: In this example, we will show the badges next to the contents of the table cell.

Output:

👁 Image

Comment

Explore