Which HTML tag is used to embed audio content?
A
<media> B
<audio> C
<sound> D
<mp3>
Analysis & Theory
`<audio>` is used to embed sound or audio content in an HTML page.
Which HTML tag is used to embed video content?
A
<media> B
<movie> C
<video> D
<mp4>
Analysis & Theory
`<video>` is used to embed video files in a webpage.
Which attribute adds playback controls to `<audio>` or `<video>`?
A
show B
controller C
controls D
display
Analysis & Theory
`controls` adds play, pause, volume, and other UI elements to media elements.
What does the `autoplay` attribute do in a media element?
A
Skips to the end B
Starts playing automatically when the page loads C
Repeats playback D
Loads faster
Analysis & Theory
`autoplay` causes the audio or video to begin playing as soon as it's ready.
Which attribute ensures a media file plays repeatedly in a loop?
A
autoplay B
repeat C
loop D
cycle
Analysis & Theory
`loop` makes the audio or video start over again automatically when it ends.
What is the function of the `muted` attribute in a video or audio element?
A
Speeds up playback B
Mutes the media by default C
Disables looping D
Reduces file size
Analysis & Theory
`muted` starts the media with the sound turned off.
Which tag is used inside `<video>` or `<audio>` to define multiple source files?
A
<source> B
<file> C
<option> D
<track>
Analysis & Theory
`<source>` is used to specify multiple media file formats for better browser support.
Why is it recommended to include multiple file formats for video/audio?
A
To reduce file size B
To make media accessible offline C
To ensure compatibility across different browsers D
To increase quality
Analysis & Theory
Different browsers support different formats, so using multiple ensures broader compatibility.
Which file formats are commonly supported for HTML `<video>`?
A
.mp4, .webm, .ogg B
.mov, .avi, .flv C
.mp3, .wav, .flac D
.pdf, .docx, .pptx
Analysis & Theory
The most common HTML video formats are `.mp4`, `.webm`, and `.ogg`.
Which tag is used to provide subtitles or captions for media?
A
<caption> B
<track> C
<subtitle> D
<text>
Analysis & Theory
`<track>` adds captions, subtitles, or other timed text to `<video>` or `<audio>`.