## Documentation

Browse source code

##### On this page

- Default markup

## Carousel

Bootstrap documentation

A carousel is used to display multiple pieces of visual content without taking up too much space. Carousels eliminate the need to scroll down the page to see all content and are a popular method of displaying marketing information.

## Default markup

Use a carousel to make your website design more visually appealing for users. In the default carousel design, respective elements slide automatically and users can go to the next slide by clicking an arrow.

    <div id="carousel-sample" class="carousel slide" data-ride="carousel">
      <ol class="carousel-indicators">
        <li data-target="#carousel-sample" data-slide-to="0" class="active"></li>
        <li data-target="#carousel-sample" data-slide-to="1" class=""></li>
        <li data-target="#carousel-sample" data-slide-to="2" class=""></li>
        <li data-target="#carousel-sample" data-slide-to="3" class=""></li>
        <li data-target="#carousel-sample" data-slide-to="4" class=""></li>
      </ol>
      <div class="carousel-inner">
        <div class="carousel-item active">
          <img class="d-block w-100" alt="" src="..." data-holder-rendered="true">
        </div>
        <div class="carousel-item">
          <img class="d-block w-100" alt="" src="..." data-holder-rendered="true">
        </div>
        <div class="carousel-item">
          <img class="d-block w-100" alt="" src="..." data-holder-rendered="true">
        </div>
        <div class="carousel-item">
          <img class="d-block w-100" alt="" src="..." data-holder-rendered="true">
        </div>
        <div class="carousel-item">
          <img class="d-block w-100" alt="" src="..." data-holder-rendered="true">
        </div>
      </div>
      <a class="carousel-control-prev" href="#carousel-sample" role="button" data-slide="prev">
        <span class="carousel-control-prev-icon" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
      </a>
      <a class="carousel-control-next" href="#carousel-sample" role="button" data-slide="next">
        <span class="carousel-control-next-icon" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
      </a>
    </div>