How to use hr tag in bootstrap?

Hi Friends 👋,

Welcome To aGuideHub! ❤️

Today In this Post, you will learn how to use hr tag with bootstrap.

Here, we will use hr class to make a owl carousel in bootstrap 4.


Let’s look at the following example to understand how it basically works:

<!doctype html>
<html lang="en">

    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap CSS -->
    <link href="[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">


    <div class="text-center">
        <h4>Where can I get some?</h4>

        <hr style="height:2px; width:100%; border-width:0; color:red; background-color:red">
        <p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.</p>
    <!-- Option 1: Bootstrap Bundle with Popper -->
    <script src="[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>



Check the output of the above code example.

Bootstrap, Hr-tag

All the best 👍