Which HTML tag is used to embed video content?
A
<movie> B
<media> C
<video> D
<mp4>
Analysis & Theory
`<video>` is the standard HTML tag used to embed video files in a webpage.
Which attribute is used to display video controls like play and pause?
A
controls B
toolbar C
display D
show
Analysis & Theory
The `controls` attribute displays built-in video playback controls.
What does the `autoplay` attribute do in a `<video>` element?
A
Loops the video B
Starts playback when user clicks C
Starts playing automatically when the page loads D
Hides controls
Analysis & Theory
`autoplay` starts the video automatically once it's ready.
Which attribute makes the video loop continuously?
A
repeat B
replay C
loop D
cycle
Analysis & Theory
The `loop` attribute restarts the video each time it ends.
What is the purpose of the `muted` attribute in a video tag?
A
Lowers the resolution B
Disables playback C
Starts the video with no sound D
Hides the video
Analysis & Theory
`muted` mutes the video by default when the page loads.
Which tag is used inside `<video>` to specify video file sources?
A
<file> B
<source> C
<input> D
<track>
Analysis & Theory
`<source>` lets you define multiple video files with different formats for better browser support.
Why should you include multiple `<source>` elements inside a `<video>` tag?
A
To reduce loading time B
To improve audio clarity C
To ensure compatibility with different browsers D
To add effects
Analysis & Theory
Different browsers support different formats, so multiple sources ensure compatibility.
Which video format is most widely supported in modern browsers?
A
.webm B
.ogg C
.mp4 D
.mov
Analysis & Theory
`.mp4` is the most commonly supported video format across browsers.
Which tag is used to add subtitles or captions to a video?
A
<caption> B
<text> C
<track> D
<sub>
Analysis & Theory
`<track>` is used to add subtitles, captions, or other text tracks to a video.
What happens if a browser does not support the `<video>` tag?
A
It displays an error message B
It crashes the page C
It ignores the video D
It shows the fallback content inside the `<video>` tag
Analysis & Theory
Fallback text or content inside `<video>` is displayed if the tag is not supported.