HTML bootcamp · Lab 18

An embedded video

mediumMedia12 minLesson: Video

Read the question, write HTML on the right, then Preview or Check.

QuestionHint and solution stay closed until you open them

Embed a <video> with playback controls and a <source> pointing to promo.mp4 (type video/mp4).

The controls attribute gives the viewer play, pause, and volume; the <source> tells the browser which file to play.

Output. A video with controls and an mp4 source.

Examples

Example 1
Expected
<video controls><source src="promo.mp4" type="video/mp4"></video>
Hint
  1. Add the boolean attribute controls to <video>.
  2. Put a <source src="promo.mp4" type="video/mp4"> inside.
Show correct code

Peek only after you have tried. You can still Check your own version.

<video controls width="320">
  <source src="promo.mp4" type="video/mp4">
</video>
index.htmlLive preview · Check reads the DOM
ResultIdle
Run to see output. Check grades the tests.