HTML5
HTML5

HTML Video

The <video> element puts video on a page. Add controls when visitors should be able to play, pause, and change the volume. You can provide a video file with src or use <source> elements. The poster attribute can show an image before the video starts. Videos should also consider captions. The <track> element can provide subtitles or captions for people who cannot hear the audio and for people who prefer to read.

Why this matters

  • ·Video can teach ideas visually.
  • ·Native controls make playback easy.
  • ·Captions make video more accessible.

Common mistakes

  • ·Huge videos can make pages slow.
  • ·Autoplay with sound can surprise visitors.
  • ·Video without captions can exclude some learners.
Your codeHTML
Live preview

Frequently asked questions

It embeds a video player in the page.

Practice questions

Question 1

Add a video with controls.

Your codeHTML
Live preview

Question 2

Add a video with a poster image.

Your codeHTML
Live preview

Quick check

Just for this topic answer honestly, then check yourself.

1 / 3

Which tag embeds video?