Cyber Code Academy
Tutorials Academy Courses
Home / html-tutorials-md / HTML Video

HTML Video

Embed video with controls, captions, poster images, and fallback text.

Category: HTML | Lesson: 18 of 40

Video example

<video controls width="800" poster="images/lesson-poster.jpg">
  <source src="media/html-introduction.mp4" type="video/mp4">
  <track src="captions-en.vtt" kind="captions" srclang="en" label="English">
  Your browser does not support HTML video.
</video>

Important attributes

controls shows playback controls. poster displays a pre-playback image. width and height reserve dimensions. muted, loop, and autoplay alter playback. track supplies captions or subtitles.

Accessibility

Use accurate captions for dialogue and meaningful sounds. Provide a transcript where appropriate. Do not place essential instructions only in video.

Practice

Embed a video with captions and poster image. Test using keyboard navigation.

Want to learn this professionally?

Explore practical IT training at Cyber Code Academy.

View Academy Courses