Add a custom carousel block with HTML, CSS, and JavaScript I'm new to drupal and not a coder but trying to add owl-carousel in the custom block following some online guides.

I found 2 links which had good owl carousel demos and both of them had 3 sections (HTML,CSS,JS) that need to integrate to make it work.

Links:

owl carousel

Flickity carousel

I was trying the owl carousel and the method I tried was to create a custom block with Full HTML support and used the following HTML code.



&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
&lt;title&gt;&lt;/title&gt;
&lt;link href="/en/libraries/OwlCarousel2-2.2.0/dist/assets/owl.carousel.min.css" rel="stylesheet" /&gt;
&lt;link href="/en/libraries/OwlCarousel2-2.2.0/dist/assets/owl.theme.default.min.css" rel="stylesheet" /&gt;
&lt;style type="text/css"&gt;article {
  margin: 20px auto;
  width: 100%;
  padding: 1em;
  font-family: sans-serif;
  font-weight: normal;
  font-size: 1em;
  color:#FFC345;
}


.quote {
  background: #3E3831;
  padding: 15px 20px 5px 15px;
  border-radius: 5px;
  margin-bottom: 30px;
}

.quote:after {
  content: '';
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 20px 18px 0 18px;
  border-color: #3E3831 transparent transparent transparent;
  position: relative;
  top: 37px;
  left: 20px;
}

.student {
  margin-left: 25px;
  margin-bottom: 80px;
}

.student .photo {
  background-color: #ccc;
  border-radius: 100px;
  width: 60px;
  height: 60px;
  float: left;
  margin-right: 10px;
}

.student p {
  position: relative;
  top: 5px;
  text-transform: uppercase;
}

.student p:nth-child(2) {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0;
}

.student p:nth-child(3) {
  font-size: 14px;
  color: #777;
}
&lt;/style&gt;
&lt;article&gt;
&lt;div id="owl"&gt;
&lt;div class="column row"&gt;
&lt;div class="large-12 columns testimonial"&gt;
&lt;div class="quote"&gt;
&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. In ultrices, elit sed faucibus pharetra, diam mauris bibendum orci, sit amet ullamcorper purus dui sit amet augue. Donec aliquet diam ut neque mattis, eu tristique sem rutrum.&lt;/p&gt;
&lt;/div&gt;

&lt;div class="student"&gt;
&lt;div class="photo round-image"&gt;&amp;nbsp;&lt;/div&gt;

&lt;p&gt;Don Know&lt;/p&gt;

&lt;p&gt;Important person, some Company&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div class="row"&gt;
&lt;div class="large-12 columns testimonial"&gt;
&lt;div class="quote"&gt;
&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. In ultrices, elit sed faucibus pharetra, diam mauris bibendum orci, sit amet ullamcorper purus dui sit amet augue. Donec aliquet diam ut neque mattis, eu tristique sem rutrum.&lt;/p&gt;
&lt;/div&gt;

&lt;div class="student"&gt;
&lt;div class="photo"&gt;&amp;nbsp;&lt;/div&gt;

&lt;p&gt;Pablo Napp&lt;/p&gt;

&lt;p&gt;Important person, some Company&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/article&gt;
&lt;script src="/en/libraries/jquery-1.11.3.min.js"&gt;&lt;/script&gt;&lt;script src="/en/libraries/OwlCarousel2-2.2.0/dist/owl.carousel.min.js"&gt;&lt;/script&gt;&lt;script&gt;
    $(document).ready(function () {
            $("#owl").owlCarousel({
                navigation: false,
                slideSpeed: 100,
                paginationSpeed: 800,
                singleItem: true,
                autoPlay: true
            });
        });
    &lt;/script&gt;




Sorry, the code was taken from some other sources and I've only limited knowledge on it.

Could anyone please guide me how to implement such carousel.

Thanks
I would not bother with copy pasting HTML/CSS/JS into a block (this is bad practice regardless).

Instead, you might want to try the Owl Carousel or Flickity module for Drupal. You didn't mention your version, Owl Carousel exists for Drupal 7, while Flickity only exists for Drupal 8.