×

html · level 2 · unit 7 · lesson 1

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

<video> adds a player, and lets people drive it.

<video> puts a video player on the page, and src names the video file, like puppy.mp4. Add controls, a word on its own like required, so people get play, pause and volume buttons. Without controls, nobody can start it.

names a picture to show before the video plays. width and height set its size in pixels, so the page does not jump about while it loads. A is one of the tiny dots that make up a screen.

Words between the tags only show in browsers that cannot play video at all.

<video src="puppy.mp4" controls poster="dog.svg" width="640" height="360">
  Your browser cannot play this video.
</video>

Press show my page to see it here.

Always add controls. People need a way to pause, and to turn the sound down.