Core HTML

The Video Tag

The video tag was added to HTML in HTML 5 to add support for more media types. Below, there is a simple demonstration of a video tag.

PlayVideo.html

<!DOCTYPE html>
<html>
  <head>
    <title>XoaX.net - Play an MP4 video file</title>
  </head>
  <body>
    <video width="320" height="240" controls>
	  <source src="XoaX.mp4" type="video/mp4">
	  The video tag is not supported in your browser.
    </video>
  </body>
</html>
 

Output

XoaX.net - Play an MP4 video file
 
 

© 2007–2024 XoaX.net LLC. All rights reserved.