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..

Syntax

Here is the Example:

Output



HTML5 video autoplay attribute values

Sr. No. value Description
1 autoplay Put autoplay=”autoplay” as the attribute and its value to use it for video.
2 none You 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 HTML5 video tag for information about adding the videos in HTML.

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

Leave a Reply

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