HTML Video — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the HTML Video lesson. Every one is checked automatically in the browser — write the code, run it, and the tests tell you what still fails.
Exercises(5)
- 1
Add a video player
easy10 minAdd a video element with controls.
- 2
Add a poster image
easy10 minShow a still before playback starts.
- 3
Add captions
easy10 minAdd a track element for subtitles.
- 4
Set the dimensions
easy10 minGive the video an explicit width and height.
- 5
Autoplay silently
medium10 minAutoplay only works when the video is muted and inline.
Find the bug(5)
- 1
Fix the video with no controls
easy8 minViewers cannot pause without controls.
- 2
Fix the unmuted autoplay
easy8 minBrowsers block autoplay unless the video is muted.
- 3
Fix the missing captions
easy8 minThe video has no track for subtitles.
- 4
Fix the wrong poster attribute
easy8 minThe still image uses poster, not thumbnail.
- 5
Fix the img used for a video
easy8 minMoving pictures need a video element.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace