Video

The <video> tag is used to play video on a webpage.

<video width="350" height="300" controls>
    <source src="media/filename.mp4"
    type="video/mp4">
</video>
  • <video> starts the video element
  • width sets the video player’s width in pixels
  • height sets the video player’s height in pixels
  • controls displays playback controls
  • src gives the file location
  • type gives the video type
  • </video> closes the video element