HTML5 Video autoplay attribute

HTML5 Video autoplay attribute is used to play the video automatically until the user does not stop it.

The attribute holds a boolean value to start/stop the video. If this attribute is present, the page will open with video autoplay. You don’t need to start it manually.

The video attributes are useful when you want to add extra functionality to the videos. You can control all the features of the video using HTML5 video autoplay and other attributes..


Here is the Example:


HTML5 video autoplay attribute values

Sr. No.valueDescription
1autoplayPut autoplay=”autoplay” as the attribute and its value to use it for video.
2noneYou can use autoplay in the video start tag to autoplay the video. This is the blank value, simple put autoplay in the video start tag.

This attribute is not required to use. But if you want to autoplay the video on page open, you must use this attribute.

checkout tutorialdeep tutorials and learn HTML tutorial for in depth study.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.