Tags used to display audio & video - HTML

Q.  Which tags can be used to display the audio and video?
- Published on 27 Aug 15

a. <audio>
b. <video>
c. both a & b
d. none of the above

ANSWER: both a & b
 

    Discussion

  • Nirja Shah   -Posted on 06 Nov 15
    <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

    <audio> tag
    - Initially there was no standard for playing audio files on a web page.

    - Audio files could only be played with a plug-in (like flash).

    - In HTML5 the <audio> element specifies a standard way to embed audio in a web page.

    - The controls attribute adds audio controls, like play, pause, and volume.

    - Text between the <audio> and </audio> tags will display in browsers that do not support the

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