67 lines
3.0 KiB
HTML
67 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>HTML Carousel Example</title>
|
|
<!-- Include Bootstrap CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container mt-5">
|
|
<div id="carouselExample" class="carousel slide" data-bs-ride="carousel">
|
|
<!-- Indicators -->
|
|
<div class="carousel-indicators">
|
|
<button type="button" data-bs-target="#carouselExample" data-bs-slide-to="0" class="active"
|
|
aria-current="true" aria-label="Slide 1"></button>
|
|
<button type="button" data-bs-target="#carouselExample" data-bs-slide-to="1"
|
|
aria-label="Slide 2"></button>
|
|
<button type="button" data-bs-target="#carouselExample" data-bs-slide-to="2"
|
|
aria-label="Slide 3"></button>
|
|
</div>
|
|
|
|
<!-- Carousel Items -->
|
|
<div class="carousel-inner">
|
|
<div class="carousel-item active">
|
|
<img src="https://via.placeholder.com/800x400" class="d-block w-100" alt="Slide 1">
|
|
<div class="carousel-caption d-none d-md-block">
|
|
<h5>First Slide</h5>
|
|
<p>Description for the first slide.</p>
|
|
</div>
|
|
</div>
|
|
<div class="carousel-item">
|
|
<img src="https://via.placeholder.com/800x400" class="d-block w-100" alt="Slide 2">
|
|
<div class="carousel-caption d-none d-md-block">
|
|
<h5>Second Slide</h5>
|
|
<p>Description for the second slide.</p>
|
|
</div>
|
|
</div>
|
|
<div class="carousel-item">
|
|
<img src="https://via.placeholder.com/800x400" class="d-block w-100" alt="Slide 3">
|
|
<div class="carousel-caption d-none d-md-block">
|
|
<h5>Third Slide</h5>
|
|
<p>Description for the third slide.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Controls -->
|
|
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExample" data-bs-slide="prev">
|
|
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
|
<span class="visually-hidden">Previous</span>
|
|
</button>
|
|
<button class="carousel-control-next" type="button" data-bs-target="#carouselExample" data-bs-slide="next">
|
|
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
|
<span class="visually-hidden">Next</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Include Bootstrap JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
|
|
</body>
|
|
|
|
</html>
|