Vidéo/Audio Flashcards
What tag is used to integrate videos in HTML5?
<video>
## Footnote
This tag allows for the embedding of videos in web pages, particularly in the mp4 format.
</video>
Which video format is compatible with the majority of browsers?
mp4
The mp4 format is widely supported across different web browsers.
List three useful attributes for the <video> tag in HTML5.</video>
- width
- height
- controls
Other attributes include autoplay, poster, and loop.
What attribute would you use to automatically start a video in HTML5?
autoplay
This attribute initiates playback as soon as the video is ready.
Fill in the blank: To include audio in HTML5, you use the _______ tag.
<audio>
## Footnote
This tag is specifically designed for embedding sound content.
</audio>
True or False: The <audio> tag can also use the autoplay attribute.</audio>
True
The autoplay attribute can be applied to audio elements as well.
What is one function of the loop attribute in the <audio> tag?</audio>
It repeats the audio playback
The loop attribute ensures that the audio plays continuously.
List two attributes that can be used with the <audio> tag.</audio>
- autoplay
- controls
The controls attribute allows users to play, pause, and adjust the volume.