diffsnack
HTML Guess the result Level 7

HTML exercise: Figures, picture and media — Before anyone taps Play, what does the browser show inside the video area?

Both files load fine.

The exercise

Before anyone taps Play, what does the browser show inside the video area?

1<video controls
2 poster="img/lesson-cover.jpg"
3 width="640" height="360"
4 src="video/lesson.mp4">
5</video>
  1. The first frame of lesson.mp4
  2. A blank box until Play is tapped
  3. The video playing automatically
  4. The image lesson-cover.jpg

Solution

Answer: The image lesson-cover.jpg

The poster attribute gives <video> a preview image to show before playback starts. Without autoplay, the video waits for you to tap Play while displaying lesson-cover.jpg.

Play this exercise Learn the concept: Figures, picture and media