bootstrap 4 carousel card slider w3schools
snippet in html

bootstrap 4 slider

user2877


  <div id="demo" class="carousel slide" data-ride="carousel">

  <!-- 
  Indicators -->
  <ul class="carousel-indicators">
    
  <li data-target="#demo" data-slide-to="0" class="active"></li>
    
  <li data-target="#demo" data-slide-to="1"></li>
    <li 
  data-target="#demo" data-slide-to="2"></li>
  </ul>

  <!-- 
  The slideshow -->
  <div class="carousel-inner">
    
  <div class="carousel-item active">
      <img src="la.jpg" 
  alt="Los Angeles">
    </div>
    <div 
  class="carousel-item">
      <img src="chicago.jpg" 
  alt="Chicago">
    </div>
    <div 
  class="carousel-item">
      <img src="ny.jpg" 
  alt="New York">
    </div>
  </div>

  
  <!-- Left and right controls -->
  <a class="carousel-control-prev" 
  href="#demo" data-slide="prev">
    <span 
  class="carousel-control-prev-icon"></span>
  </a>
  <a 
  class="carousel-control-next" href="#demo" data-slide="next">
    
  <span class="carousel-control-next-icon"></span>
  </a>

</div>
 

carousel code bootstrap

user521


 <div class="form-group">
  <label for="comment">Comment:</label>
  <textarea class="form-control" rows="5" id="comment">

how to add bootstrap carousel

user7283

//Author:Mohammad Arman Khan
//BOOTSTYRAP CAROUSEL(SLIDER_LOCALLY KNOWN)
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
    <ol class="carousel-indicators">
        <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
        <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
        <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
    </ol>
    <div class="carousel-inner" role="listbox">
        <!-- Slide One - Set the background image for this slide in the line below -->
        <div class="carousel-item active" style="background-image: url('https://www.bonfiglioli.com/india/images/Asphalt/image-thumb__38736__slider/istock-466386521.jpeg')">
            <div class=" col-md-6 divleft-top">
              
                <p class="text-CSS">
                    Solutions for the Asphalt Industry </p>

            </div>
        </div>
        <!-- Slide Two - Set the background image for this slide in the line below -->
        <div class="carousel-item" style="background-image: url('https://www.bonfiglioli.com/india/images/Asphalt/image-thumb__38736__slider/istock-466386521.jpeg')">
            <div class="col-md-6 divleft-top">
             
                <p class="text-CSS">
                    Solutions for the Asphalt Industry </p>

            </div>
        </div>
        <!-- Slide Three - Set the background image for this slide in the line below -->
        <div class="carousel-item"
            style="background-image: url('https://www.bonfiglioli.com/india/images/Asphalt/image-thumb__38736__slider/istock-466386521.jpeg')">
            <div class="col-md-6 divleft-top">
             
                <p class="text-CSS">
                    Solutions for the Asphalt Industry </p>
            </div>
        </div>
    </div>
    <a class="carousel-control-prev" href="#carouselExampleIndicators" 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="#carouselExampleIndicators" role="button" data-slide="next">
        <span class="carousel-control-next-icon" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div>


//CSS
.carousel-item {
height: 100vh;
min-height: 350px;
background: no-repeat center center scroll;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
//optional css
.text-CSS {
    font-size: 55px;
    color: #003861!important;
    padding-top: 240px;
    padding-left: 110px;
}