Easy Tutorial
❮ Att Object Width Tag Article ❯

HTML Audio/Video DOM autoplay Attribute

HTML Audio/Video DOM Reference Manual

Example

Enable autoplay and reload the video:


Definition and Usage

The autoplay attribute sets or returns whether the audio/video should start playing immediately after it is loaded.


Browser Support

All major browsers support the autoplay attribute.

Note: Internet Explorer 8 and earlier versions do not support this attribute.


Syntax

Set the autoplay attribute:

Return the autoplay attribute:

Attribute Values

Value Description
true Indicates that the audio/video should start playing immediately after it is loaded.
false Default. Indicates that the audio/video should not start playing immediately after it is loaded.

Technical Details

Return Value: Boolean, true false
Default Value: false
--- ---
❮ Att Object Width Tag Article ❯