1<!--
2Video autoplay in html is a boolean attribute, which plays the video automatically when the video gets loaded on web page.
3-->
4
5Syntax:
6<video autoplay>
7
8Example:
9<video controls autoplay>
10 <source src="movie.mp4" type="video/mp4">
11 <source src="movie.ogg" type="video/ogg">
12</video>
13
14<!--
15I hope it will help you.
16Namaste
17Stay Safe Stay Home
18-->
1<!DOCTYPE html>
2<html>
3<body>
4
5<h1>The video autoplay attribute</h1>
6
7<video width="320" height="240" controls autoplay>
8 <source src="movie.mp4" type="video/mp4">
9 <source src="movie.ogg" type="video/ogg">
10 Your browser does not support the video tag.
11</video>
12
13</body>
14</html>
15