HTML code
This is the html code used to create this bootstrap snippet, You can copy and paste the following html code inside a page with bootstrap 5.1.3 included, to get the result that you can see in the preview selection
Download<!-- Banner -->
<a href="https://webpixels.io/components?ref=bootdey" class="btn w-full btn-primary text-truncate rounded-0 py-2 border-0 position-relative" style="z-index: 1000;">
<strong>Crafted with Webpixels CSS:</strong> The design system for Bootstrap 5. Browse all components →
</a>
<div class="p-10 bg-surface-secondary">
<div class="container">
<div class="card">
<div class="card-header">
<h6>Bootstrap 5 Table</h6>
</div>
<div class="table-responsive">
<table class="table table-hover table-nowrap">
<thead class="table-light">
<tr>
<th scope="col">Name</th>
<th scope="col">Job Title</th>
<th scope="col">Email</th>
<th scope="col">Phone</th>
<th scope="col">Lead Score</th>
<th scope="col">Company</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td data-label="Job Title">
<img alt="..." src="https://images.unsplash.com/photo-1502823403499-6ccfcf4fb453?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=3&w=256&h=256&q=80" class="avatar avatar-sm rounded-circle me-2">
<a class="text-heading font-semibold" href="#">
Robert Fox
</a>
</td>
<td data-label="Email">
<span>Web Designer</span>
</td>
<td data-label="Phone">
<a class="text-current" href="mailto:[email protected]">[email protected]</a>
</td>
<td data-label="Lead Score">
<a class="text-current" href="tel:202-555-0152">202-555-0152</a>
</td>
<td data-label="Company">
<span class="badge bg-soft-success text-success">7/10</span>
</td>
<td data-label="">
<a class="text-current" href="#">Dribbble</a>
</td>
<td data-label="" class="text-end">
<div class="dropdown">
<a class="text-muted" href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="bi bi-three-dots-vertical"></i>
</a>
<div class="dropdown-menu dropdown-menu-end">
<a href="#!" class="dropdown-item">
Action
</a>
<a href="#!" class="dropdown-item">
Another action
</a>
<a href="#!" class="dropdown-item">
Something else here
</a>
</div>
</div>
</td>
</tr>
<tr>
<td data-label="Job Title">
<img alt="..." src="https://images.unsplash.com/photo-1610271340738-726e199f0258?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=3&w=256&h=256&q=80" class="avatar avatar-sm rounded-circle me-2">
<a class="text-heading font-semibold" href="#">
Darlene Robertson
</a>
</td>
<td data-label="Email">
<span>Developer</span>
</td>
<td data-label="Phone">
<a class="text-current" href="mailto:[email protected]">[email protected]</a>
</td>
<td data-label="Lead Score">
<a class="text-current" href="tel:224-567-2662">224-567-2662</a>
</td>
<td data-label="Company">
<span class="badge bg-soft-warning text-warning">5/10</span>
</td>
<td data-label="">
<a class="text-current" href="#">Netguru</a>
</td>
<td data-label="" class="text-end">
<div class="dropdown">
<a class="text-muted" href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="bi bi-three-dots-vertical"></i>
</a>
<div class="dropdown-menu dropdown-menu-end">
<a href="#!" class="dropdown-item">
Action
</a>
<a href="#!" class="dropdown-item">
Another action
</a>
<a href="#!" class="dropdown-item">
Something else here
</a>
</div>
</div>
</td>
</tr>
<tr>
<td data-label="Job Title">
<img alt="..." src="https://images.unsplash.com/photo-1610878722345-79c5eaf6a48c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=3&w=256&h=256&q=80" class="avatar avatar-sm rounded-circle me-2">
<a class="text-heading font-semibold" href="#">
Theresa Webb
</a>
</td>
<td data-label="Email">
<span>Marketing Specialist</span>
</td>
<td data-label="Phone">
<a class="text-current" href="mailto:[email protected]">[email protected]</a>
</td>
<td data-label="Lead Score">
<a class="text-current" href="tel:401-505-6800">401-505-6800</a>
</td>
<td data-label="Company">
<span class="badge bg-soft-danger text-danger">2/10</span>
</td>
<td data-label="">
<a class="text-current" href="#">Figma</a>
</td>
<td data-label="" class="text-end">
<div class="dropdown">
<a class="text-muted" href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="bi bi-three-dots-vertical"></i>
</a>
<div class="dropdown-menu dropdown-menu-end">
<a href="#!" class="dropdown-item">
Action
</a>
<a href="#!" class="dropdown-item">
Another action
</a>
<a href="#!" class="dropdown-item">
Something else here
</a>
</div>
</div>
</td>
</tr>
<tr>
<td data-label="Job Title">
<img alt="..." src="https://images.unsplash.com/photo-1612422656768-d5e4ec31fac0?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=3&w=256&h=256&q=80" class="avatar avatar-sm rounded-circle me-2">
<a class="text-heading font-semibold" href="#">
Kristin Watson
</a>
</td>
<td data-label="Email">
<span>Sales Manager</span>
</td>
<td data-label="Phone">
<a class="text-current" href="mailto:[email protected]">[email protected]</a>
</td>
<td data-label="Lead Score">
<a class="text-current" href="tel:307-560-8817">307-560-8817</a>
</td>
<td data-label="Company">
<span class="badge bg-soft-success text-success">9/10</span>
</td>
<td data-label="">
<a class="text-current" href="#">Mailchimp</a>
</td>
<td data-label="" class="text-end">
<div class="dropdown">
<a class="text-muted" href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="bi bi-three-dots-vertical"></i>
</a>
<div class="dropdown-menu dropdown-menu-end">
<a href="#!" class="dropdown-item">
Action
</a>
<a href="#!" class="dropdown-item">
Another action
</a>
<a href="#!" class="dropdown-item">
Something else here
</a>
</div>
</div>
</td>
</tr>
<tr>
<td data-label="Job Title">
<img alt="..." src="https://images.unsplash.com/photo-1502823403499-6ccfcf4fb453?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=3&w=256&h=256&q=80" class="avatar avatar-sm rounded-circle me-2">
<a class="text-heading font-semibold" href="#">
Robert Fox
</a>
</td>
<td data-label="Email">
<span>Web Designer</span>
</td>
<td data-label="Phone">
<a class="text-current" href="mailto:[email protected]">[email protected]</a>
</td>
<td data-label="Lead Score">
<a class="text-current" href="tel:202-555-0152">202-555-0152</a>
</td>
<td data-label="Company">
<span class="badge bg-soft-success text-success">7/10</span>
</td>
<td data-label="">
<a class="text-current" href="#">Dribbble</a>
</td>
<td data-label="" class="text-end">
<div class="dropdown">
<a class="text-muted" href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="bi bi-three-dots-vertical"></i>
</a>
<div class="dropdown-menu dropdown-menu-end">
<a href="#!" class="dropdown-item">
Action
</a>
<a href="#!" class="dropdown-item">
Another action
</a>
<a href="#!" class="dropdown-item">
Something else here
</a>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
CSS code
This is the css code used to create this bootstrap snippet, You can copy and paste the following css code inside a page with bootstrap 5.1.3 included, to get the result that you can see in the preview selection
Download/* Webpixels CSS */
/* Utility and component-centric Design System based on Bootstrap for fast, responsive UI development */
/* URL: https://github.com/webpixels/css */
@import url(https://unpkg.com/@webpixels/[email protected]/dist/index.css);

About this bootstrap example/template
This example/template, Bootstrap table with avatars and badges, was published on Dec 7th 2021, 04:59 by Alexis Enache and it is free.
We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.
We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.
This code example currectly have 1.1K views, Using this bootstrap snippet you have the following benefits:
Bootstrap 5.1.3
<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>
<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js'></script>
This code example is based on bootstrap 5.1.3 and the grid system of this framework
Responsive
Based on bootstrap framework makes all the layouts perfectly responsive for all devices
Crossbrowser compatibility
Tested on all major browsers, it works smoothly on all of them
semantic html 5
Built on html / css3 the code quality is really amazing
Simple Integration
This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working