autoplay is used to start a video automatically - HTML

Q.  Which attribute is used to start a video automatically?
- Published on 27 Aug 15

a. submit
b. select
c. <video>
d. autoplay

ANSWER: autoplay
 

    Discussion

  • Nirja Shah   -Posted on 06 Nov 15
    autoplay
    - This attribute is a boolean attribute.

    - Whenever this attribute is used, the video starts playback automatically without stopping the loading of the rest of the data.

    - This attribute is even used for the audio attribute.

    <video> tag
    - It specifies the video, such as a movie clip or other video streams.

    - There are 3 video formats supported by the <video> element:

    1. MP4 - MPEG 4 files with H264 video codec and AAC audio codec
    2. WebM - WebM files with VP8 video codec and Vorbis audio codec
    3. Ogg - Ogg files with Theora video codec and Vorbis audio codec

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)