the attribute of video tag that plays the video file automatically
Answers
Answered by
3
The attribute of <video> tag that plays the video file automatically when the web page is loaded is autoplay.
Explanation:
The autoplay attribute is a boolean attribute.
When present, the video will automatically start playing as soon as it can do so without stopping.
Example
<!DOCTYPE html>
<html>
<body>
<h1>The video autoplay attribute</h1>
<video width="320" height="240" controls autoplay>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
</body>
</html>
Similar questions