ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 5 Basic Carousel
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 Grid System</title> </head> <body> <h1 class="text-center">Bootstrap 5 Basic Carousel</h1> <p class="text-justify text-center">In this example, you can learn about Bootstrap 5 Basic carousel.</p> <div class="container"> <div id="carouselExampleSlidesOnly" class="carousel slide" data-bs-ride="carousel"> <div class="carousel-inner"> <div class="carousel-item active"> <img src="https://picsum.photos/seed/picsum/800/300" class="d-block w-100" alt="First Slider"> </div> <div class="carousel-item"> <img src="https://picsum.photos/seed/picsum/800/300" class="d-block w-100" alt="Second Slider"> </div> <div class="carousel-item"> <img src="https://picsum.photos/800/300?grayscale" class="d-block w-100" alt="Third slider"> </div> </div> </div> </div><!--/container--> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"></script> </body> </html>
Output :
Running