The autoplay attribute is a boolean attribute in HTML5.
✗ Incorrect
In HTML5, boolean attributes like autoplay do not need a value. Just writing autoplay is enough. Adding values like 'true' or 'yes' is not standard and may not work.
❓ accessibility
advanced
2:00remaining
How to make a video accessible for screen readers?
Which option best improves accessibility for a video element so screen readers understand it?
AAdd an alt attribute with a description of the video.
BAdd a longdesc attribute with a link to a transcript.
CAdd a title attribute with the video file name.
DAdd a <track> element with kind="captions" and a label describing the captions.
Attempts:
2 left
💡 Hint
Think about how captions help deaf or hard-of-hearing users.
✗ Incorrect
The
❓ layout
advanced
2:00remaining
How to make a video responsive using CSS?
You want the video to resize nicely on different screen sizes. Which CSS snippet achieves this?
Think about keeping the video width flexible but not too large.
✗ Incorrect
Setting width to 100% and height to auto makes the video scale with its container width while keeping the aspect ratio. max-width limits the maximum size on large screens.
🧠 Conceptual
expert
3:00remaining
What happens if multiple tags are used inside a video?
Consider this code snippet:
What is the browser's behavior?
AThe browser randomly picks one source to play.
BThe browser plays all sources one after another automatically.
CThe browser tries to play the first supported source in order and ignores the rest.
DThe browser shows an error because multiple sources are not allowed.
Attempts:
2 left
💡 Hint
Think about how browsers handle different video formats for compatibility.
✗ Incorrect
Browsers check each in order and use the first one they support. This allows providing multiple formats for better compatibility.