This example shows a Bootstrap card with an image on top, a title, some text, and a button. The card is centered on the page and is responsive on different screen sizes.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap Card Example</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<main class="container my-5">
<section class="row justify-content-center">
<article class="col-md-4">
<div class="card">
<img src="https://via.placeholder.com/300x180" class="card-img-top" alt="Sample Image">
<div class="card-body">
<h5 class="card-title">Sample Card</h5>
<p class="card-text">This card groups an image, title, and text in one neat box.</p>
<a href="#" class="btn btn-primary" aria-label="Learn more about Sample Card">Learn More</a>
</div>
</div>
</article>
</section>
</main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>