Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap Card with Tab Navigation</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script> </head> <body> <div class="m-4"> <div class="card text-center"> <div class="card-header"> <ul class="nav nav-tabs card-header-tabs" id="myTab"> <li class="nav-item"> <a href="#home" class="nav-link active" data-bs-toggle="tab">Home</a> </li> <li class="nav-item"> <a href="#profile" class="nav-link" data-bs-toggle="tab">Profile</a> </li> <li class="nav-item"> <a href="#messages" class="nav-link" data-bs-toggle="tab">Messages</a> </li> </ul> </div> <div class="card-body"> <div class="tab-content"> <div class="tab-pane fade show active" id="home"> <h5 class="card-title">Home tab content</h5> <p class="card-text">Here is some example text to make up the tab's content. Replace it with your own text anytime.</p> <a href="#" class="btn btn-primary">Go somewhere</a> </div> <div class="tab-pane fade" id="profile"> <h5 class="card-title">Profile tab content</h5> <p class="card-text">Here is some example text to make up the tab's content. Replace it with your own text anytime.</p> <a href="#" class="btn btn-primary">Go somewhere</a> </div> <div class="tab-pane fade" id="messages"> <h5 class="card-title">Messages tab content</h5> <p class="card-text">Here is some example text to make up the tab's content. Replace it with your own text anytime.</p> <a href="#" class="btn btn-primary">Go somewhere</a> </div> </div> </div> </div> </div> </body> </html>