video html element code example

Example 1: video tag html

<!DOCTYPE html>
<html>
<body>

<h1>Video TITLE</h1>

<video width="320" height="240" controls>
  <source src="Video Link">
</video>

</body>
</html>

Example 2: html video tag

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>

Example 3: html video multiple elements

<video controls>
    <source src="/videos/myvideo.mp4" type="video/mp4">
    <source src="/videos/myvideo.webm" type="video/webm">
    Your browser does not support embedded videos.
</video>

Tags:

Html Example