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 Styles</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="row"> <div class="col-6"> <div class="card text-white bg-primary mb-4"> <div class="card-body"> <h5 class="card-title">Primary card title</h5> <p class="card-text">Some dummy text to make up the card's content. You can replace it anytime.</p> </div> </div> </div> <div class="col-6"> <div class="card text-white bg-secondary mb-4"> <div class="card-body"> <h5 class="card-title">Secondary card title</h5> <p class="card-text">Some dummy text to make up the card's content. You can replace it anytime.</p> </div> </div> </div> <div class="col-6"> <div class="card text-white bg-success mb-4"> <div class="card-body"> <h5 class="card-title">Success card title</h5> <p class="card-text">Some dummy text to make up the card's content. You can replace it anytime.</p> </div> </div> </div> <div class="col-6"> <div class="card text-white bg-danger mb-4"> <div class="card-body"> <h5 class="card-title">Danger card title</h5> <p class="card-text">Some dummy text to make up the card's content. You can replace it anytime.</p> </div> </div> </div> <div class="col-6"> <div class="card text-white bg-warning mb-4"> <div class="card-body"> <h5 class="card-title">Warning card title</h5> <p class="card-text">Some dummy text to make up the card's content. You can replace it anytime.</p> </div> </div> </div> <div class="col-6"> <div class="card text-white bg-info mb-4"> <div class="card-body"> <h5 class="card-title">Info card title</h5> <p class="card-text">Some dummy text to make up the card's content. You can replace it anytime.</p> </div> </div> </div> <div class="col-6"> <div class="card text-white bg-dark"> <div class="card-body"> <h5 class="card-title">Dark card title</h5> <p class="card-text">Some dummy text to make up the card's content. You can replace it anytime.</p> </div> </div> </div> <div class="col-6"> <div class="card bg-light"> <div class="card-body"> <h5 class="card-title">Light card title</h5> <p class="card-text">Some dummy text to make up the card's content. You can replace it anytime.</p> </div> </div> </div> </div> </div> </body> </html>