/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: autoplay

[this page | pdf | back links]

The HTML autoplay attribute indicates whether an audio or video should start playing as soon as it is ready. It applies to <audio> and <video> elements.

 

Valid attribute values (when used with an <audio> and <video> element) include:

 

Value

Description

autoplay

Media to start playing as soon as ready

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile