How to Use HTML Video tag (ELEMENT) | Autoplay, Loop, Muted, Poster, Preload Attributes

preview_player
Показать описание
In this video, we will be learning about how to use the HTML video tag element and its various attributes such as autoplay, loop, muted, poster, and preload.
Firstly, we will understand how to add a video to an HTML document using the video tag. We will learn about the different video formats supported by web browsers and how to specify the source file using the "src" attribute.
Next, we will look at the "autoplay" attribute that automatically starts the video when the page loads. We will also learn about the "loop" attribute that plays the video on a continuous loop.
We will then discuss the "muted" attribute, which allows us to play the video without any sound. This attribute is useful when we want to display a video without disturbing the surrounding content.
Next, we will explore the "poster" attribute, which sets a preview image or thumbnail for the video. This is useful when we want to show a preview of the video before it starts playing.
Finally, we will look at the "preload" attribute, which determines how the video should be loaded. We will learn about the different values of the preload attribute and how to use them to optimize the loading time of the video.
Throughout the video, we will see examples of how to use these attributes in different scenarios. By the end of the video, you will have a thorough understanding of how to use the HTML video tag and its various attributes to create engaging video content on your website.
Рекомендации по теме
Комментарии
Автор

sir agar ek 40 sec ki video hai lekin ham chahte hai ki 5 sec tak hi video loop me chale to ye kaise karenge

DarklordManipulator
Автор

Bhai isme mera sound nehi aa rhaa.... That's the problem... 🥲

sabyasacheesahoo
Автор

Esa nhi ho sakta ki video autoplay ho without muted

lennyfacehub