ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 5 Bordered Table
Source Code
<!DOCTYPE html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="description" content=""> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" /> <title>Bootstrap 5 Bordered Table</title> </head> <body> <h1 class="text-center">Bootstrap 5 Bordered Table</h1> <p class="my-3 text-center">In this example, you will learn how to make Bootstrap 5 bordered table.</p> <div class="table-responsive border p-3 mt-4"> <table class="table table-bordered"> <thead> <tr> <th>#</th> <th>Fi text rst Name</th> <th>Last Name</th> <th>Work</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>Smith</td> <td>Jane</td> <td>Web Designer</td> </tr> <tr> <td>2</td> <td>John</td> <td>Doe</td> <td>Graphics Designer</td> </tr> <tr> <td>3</td> <td>Andre</td> <td>Ren</td> <td>Developer</td> </tr> </tbody> </table> </div> <!-- Option 1: Bootstrap Bundle with Popper --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"></script> </body> </html>
Output :
Running