HTML Video

Video Tag

  • The <video>…. </video> tag is used to play video files.
  • The <video> tag contains one or more <source> tags with different video sources. The browser will choose the first source it supports.
  • There are three supported video formats in HTML: MP4, WebM, and OGG.


Example:

<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
</video>

Cristle Academy

Compiler