HTML Tutorial

The language for building web pages.

HTML Video

HTML Video

The HTML <video> element is used to show a video on a web page. It supports MP4, WebM, and OGG formats.

Video Attributes:

  • src - Video file URL
  • controls - Show play/pause controls
  • autoplay - Auto start (muted required in Chrome)
  • muted - Mute the audio
  • loop - Loop the video
  • poster - Thumbnail image
  • width/height - Dimensions

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics