How To Use Audio In Html

 How To Use Audio In Html 

Friends, if you want to put a <audio> in html, then you have to use the audio tag. Some examples are given below.

The HTML <audio> element is used to play an audio file on a web page.




<audio controls autoplay> 

<source src="https://youtu.be/rVrpbBuSbtU" type="audio/ogg"> 

<source src="https://youtu.be/rVrpbBuSbtU" type="audio/mpeg">

</audio>




How To Add Video In Html Css

 How To Add Video In Html Css

Friends, if you want to put a <video> in html, then you have to use the video tag. Some examples are given below


<video width="320" height="240" autoplay>

 <source src="https://youtu.be/rVrpbBuSbtU" type="video/mp4"> 

<source src="https://youtu.be/rVrpbBuSbtU" type="video/ogg"> 

</video>


other wise  you may also use ifrem 

step1: open your youtube and start your video



step 2:  click on shear button and go to embed then copy code 








Step 3 : Now Pate Code in your Html File then Save And Refresh Your Browser

Code

<iframe width="560" height="315" src="https://www.youtube.com/embed/rVrpbBuSbtU" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
























































how to create carousel

how to create carousel 

Hello friends, if you are trying to make a scrollbar, then you are at the right place, here you will get the right information.




<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
        @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600&family=Roboto:wght@300;400;500&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #2196f3;
  overflow: hidden;
}

.swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

.swiper-slide {
  width: 300px;
  height: 400px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  filter: blur(1px);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: self-start;
}

.swiper-slide-active {
  filter: blur(0px);
}

.swiper-slide span {
  text-transform: uppercase;
  color: #fff;
  background: #1b7402;
  padding: 7px 18px 7px 25px;
  display: inline-block;
  border-radius: 0 20px 20px 0px;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-family: "Open Sans", sans-serif;
}

.swiper-slide--one span {
  background: #62667f;
}

.swiper-slide--two span {
  background: #087ac4;
}

.swiper-slide--three span {
  background: #b45205;
}

.swiper-slide--four span {
  background: #087ac4;
}

.swiper-slide h2 {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.4;
  margin-bottom: 15px;
  padding: 25px 45px 0 25px;
}

.swiper-slide p {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  display: flex;
  align-items: center;
  padding: 0 25px 35px 25px;
}

.swiper-slide svg {
  color: #fff;
  width: 22px;
  height: 22px;
  margin-right: 7px;
}

.swiper-slide--one {
  background: linear-gradient(to top, #0f2027, #203a4300, #2c536400),
    url(https://images.unsplash.com/photo-1556206079-747a7a424d3d?ixlib=rb-4.
    0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=871&q=80)
      no-repeat 50% 50% / cover;
}

.swiper-slide--two {
  background: linear-gradient(to top, #0f2027, #203a4300, #2c536400),
    url("https://images.unsplash.com/photo-1571900670723-
    a317a66e3fb7?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90b
    y1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=423&q=80")
      no-repeat 50% 50% / cover;
}

.swiper-slide--three {
  background: linear-gradient(to top, #0f2027, #203a4300, #2c536400),
    url("https://images.unsplash.com/photo-1549144511-f099e773c
    147?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx
    8fGVufDB8fHx8&auto=format&fit=crop&w=387&q=80")
      no-repeat 50% 50% / cover;
}

.swiper-slide--four {
  background: linear-gradient(to top, #0f2027, #203a4300, #2c536400),
    url("https://images.unsplash.com/photo-165036
    7310179-e1b5b8e453c3?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by
    1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80")
      no-repeat 50% 50% / cover;
}

.swiper-slide--five {
  background: linear-gradient(to top, #0f2027, #203a4300, #2c536400),
    url("https://images.unsplash.com/photo-1596521864207-13d
    46b1a0c78?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdl
    fHx8fGVufDB8fHx8&auto=format&fit=crop&w=774&q=80")
      no-repeat 50% 50% / cover;
}

.swiper-3d .swiper-slide-shadow-left,
.swiper-3d .swiper-slide-shadow-right {
  background-image: none;
}

    </style>
    </head>
    <body>
        <section>
            <div class="swiper">
                <div class="swiper-wrapper">
                    <div class="swiper-slide swiper-slide--one">
                        <span>domestic</span>
                        <div>
                            <h2>Enjoy the exotic of sunny Hawaii</h2>
                            <p>
                                <svg xmlns="http://www.w3.org/2000/svg"
                                    fill="none" viewBox="0 0 24 24"
                                    stroke-width="1.5" stroke="currentColor"
                                    class="w-6 h-6">
                                    <path stroke-linecap="round"
                                        stroke-linejoin="round" d="M15 10.5a3 3
                                        0 11-6 0 3 3 0 016 0z" />
                                        <path stroke-linecap="round"
                                            stroke-linejoin="round" d="M19.5
                                            10.5c0 7.142-7.5 11.25-7.5 11.25S4.5
                                            17.642 4.5 10.5a7.5 7.5 0 1115 0z"
                                            />
                                        </svg>
                                        Maui, Hawaii
                                    </p>
                                </div>
                            </div>
                            <div class="swiper-slide swiper-slide--two">
                                <span>subtropical</span>
                                <div>
                                    <h2>The Island of Eternal Spring</h2>
                                    <p>
                                        <svg xmlns="http://www.w3.org/2000/svg"
                                            fill="none" viewBox="0 0 24 24"
                                            stroke-width="1.5"
                                            stroke="currentColor" class="w-6
                                            h-6">
                                            <path stroke-linecap="round"
                                                stroke-linejoin="round" d="M15
                                                10.5a3 3 0 11-6 0 3 3 0 016 0z"
                                                />
                                                <path stroke-linecap="round"
                                                    stroke-linejoin="round"
                                                    d="M19.5 10.5c0 7.142-7.5
                                                    11.25-7.5 11.25S4.5 17.642
                                                    4.5 10.5a7.5 7.5 0 1115 0z"
                                                    />
                                                </svg>
                                                Lanzarote, Spanien
                                            </p>
                                        </div>
                                    </div>

                                    <div class="swiper-slide
                                        swiper-slide--three">
                                        <span>history</span>
                                        <div>
                                            <h2>Awesome Eiffel Tower</h2>
                                            <p>
                                                <svg
                                                    xmlns="http://www.w3.org/2000/svg"
                                                    fill="none" viewBox="0 0 24
                                                    24" stroke-width="1.5"
                                                    stroke="currentColor"
                                                    class="w-6 h-6">
                                                    <path stroke-linecap="round"
                                                        stroke-linejoin="round"
                                                        d="M15 10.5a3 3 0 11-6 0
                                                        3 3 0 016 0z" />
                                                        <path
                                                            stroke-linecap="round"
                                                            stroke-linejoin="round"
                                                            d="M19.5 10.5c0
                                                            7.142-7.5 11.25-7.5
                                                            11.25S4.5 17.642 4.5
                                                            10.5a7.5 7.5 0 1115
                                                            0z" />
                                                        </svg>
                                                        Paris, France
                                                    </p>
                                                </div>
                                            </div>

                                            <div class="swiper-slide
                                                swiper-slide--four">
                                                <span>Mayans</span>
                                                <div>
                                                    <h2>One of the safest states
                                                        in Mexico</h2>
                                                    <p>
                                                        <svg
                                                            xmlns="http://www.w3.org/2000/svg"
                                                            fill="none"
                                                            viewBox="0 0 24 24"
                                                            stroke-width="1.5"
                                                            stroke="currentColor"
                                                            class="w-6 h-6">
                                                            <path
                                                                stroke-linecap="round"
                                                                stroke-linejoin="round"
                                                                d="M15 10.5a3 3
                                                                0 11-6 0 3 3 0
                                                                016 0z" />
                                                                <path
                                                                    stroke-linecap="round"
                                                                    stroke-linejoin="round"
                                                                    d="M19.5
                                                                    10.5c0
                                                                    7.142-7.5
                                                                    11.25-7.5
                                                                    11.25S4.5
                                                                    17.642 4.5
                                                                    10.5a7.5 7.5
                                                                    0 1115 0z"
                                                                    />
                                                                </svg>
                                                                The Yucatan,
                                                                Mexico
                                                            </p>
                                                        </div>
                                                    </div>

                                                    <div class="swiper-slide
                                                        swiper-slide--five">
                                                        <span>native</span>
                                                        <div>
                                                            <h2>The most popular
                                                                yachting
                                                                destination</h2>
                                                            <p>

                                                                <svg
                                                                    xmlns="http://www.w3.org/2000/svg"
                                                                    fill="none"
                                                                    viewBox="0 0
                                                                    24 24"
                                                                    stroke-width="1.5"
                                                                    stroke="currentColor"
                                                                    class="w-6
                                                                    h-6">
                                                                    <path
                                                                        stroke-linecap="round"
                                                                        stroke-linejoin="round"
                                                                        d="M15
                                                                        10.5a3 3
                                                                        0 11-6 0
                                                                        3 3 0
                                                                        016 0z"
                                                                        />
                                                                        <path
                                                                            stroke-linecap="round"
                                                                            stroke-linejoin="round"
                                                                            d="M19.5
                                                                            10.5c0
                                                                            7.142-7.5
                                                                            11.25-7.5
                                                                            11.25S4.5
                                                                            17.642
                                                                            4.5
                                                                            10.5a7.5
                                                                            7.5
                                                                            0
                                                                            1115
                                                                            0z"
                                                                            />
                                                                        </svg>
                                                                        Whitsunday
                                                                        Islands,
                                                                        Australia
                                                                    </p>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <!-- Add Pagination -->
                                                        <div
                                                            class="swiper-pagination"></div>
                                                    </div>
                                                </section>
                                                <script>
        var swiper = new Swiper(".swiper", {
  effect: "coverflow",
  grabCursor: true,
  centeredSlides: true,
  slidesPerView: "auto",
  coverflowEffect: {
    rotate: 0,
    stretch: 0,
    depth: 100,
    modifier: 2,
    slideShadows: true
  },
  spaceBetween: 60,
  loop: true,
  pagination: {
    el: ".swiper-pagination"
  }
});

      </script>
                                            </body>
                                        </html>


TABLE BORDER IN HTML

 TABLE BORDER IN HTML 

When you add a border to a table, you also add borders around each table cell:

To add a border, use the CSS border property on table, th, and td elements:



<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
  border: 1px solid black;
  border-collapse: collapse;
}
</style>
</head>
<body>

<h2>Collapsed Borders</h2>
<p>If you want the borders to collapse into one border, add the CSS border-collapse property.</p>

<table style="width:100%">
  <tr>
    <th>Firstname</th>
    <th>Lastname</th>
    <th>Age</th>
  </tr>
  <tr>
    <td>Jill</td>
    <td>Smith</td>
    <td>50</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td>
    <td>94</td>
  </tr>
  <tr>
    <td>John</td>
    <td>Doe</td>
    <td>80</td>
  </tr>
</table>

</body>
</html>


                                                                    



HTML TABLE

HTML TABLE 

HTML tables allow web developers to arrange data into rows and columns. 


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <table>
        <tr>
          <th>Company</th>
          <th>Contact</th>
          <th>Country</th>
        </tr>
        <tr>
          <td>Alfreds Futterkiste</td>
          <td>Maria Anders</td>
          <td>Germany</td>
        </tr>
        <tr>
          <td>Centro comercial Moctezuma</td>
          <td>Francisco Chang</td>
          <td>Mexico</td>
        </tr>
      </table>
</body>
</html>

How To Use Audio In Html

 How To Use Audio In Html  Friends, if you want to put a  <audio>  in html, then you have to use the audio tag. Some examples are giv...