After going through the previous chapter you may have some knowledge about the TRACK Element. In this chapter we will learn about the VIDEO Element, which is supported by all major browsers.

<video> . . . </video>

The VIDEO Element is used to play a movie or video clip on the website. Before the development of HTML5 VIDEO Element we were in compulsion to use the object and embed element and its lengthy scripts. Now with the help of VIDEO Element this the VIDEO file can be called clean an on easy steps.

Here is the Syntax for VIDEO Element

Supported Browser
html5 tutorial html5 tutorial html5 tutorial html5 tutorial html5 tutorial


<video> Some additional element will go inside </video>

Below is complete syntax along with example


<!DOCTYPE html>

<html>
	
    <head>
    	 <title>Title name will go here</title>
    </head>
    
    <body>
		
		<video width="500" height="375" controls="controls">
			
			<source src="media/sample_video.mp4" type="video/mp4" />
			<source src="your ogg media file name" type="video/ogg" />
			Your browser does not support the video tag.
		
		</video>				
        
    </body>
    
</html>

Download