HTML code
Clean, semantic HTML that powers this Bootstrap 5.1.3 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.
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
Scoped CSS that styles the component. Paste it after Bootstrap 5.1.3 to keep the design, spacing, and responsiveness consistent.
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);FAQ
How do I use this snippet?
Include Bootstrap 5.1.3, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.
Can I use it in commercial projects?
Yes. It’s free for personal and commercial work; check the snippets license for details.
Is it responsive?
Yes. It inherits the responsive grid and components from Bootstrap 5.1.3.

About this bootstrap example/template
This free Bootstrap 5.1.3 snippet, Bootstrap table with avatars and badges, was published on Dec 7th 2021, 04:59 by Alexis Enache.
Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.
Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.
Already trusted in 1.5K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.
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