HTML VIDEO <video> Tag
0 2149
The VIDEO Element is used to play a movie or video clip on the website. Currently, there are 3 types of supported video formats for the <video> element like MP4, WebM, and Ogg.
The HTML VIDEO <video> tag is new in HTML5. The <video> tag also supports the Global Attributes, Event Attributes in HTML.
Syntax:
<video> ... ... </video>
Program:
<!DOCTYPE HTML> <html> <head> <title>HTML Video Tag</title> </head> <body> <h2>Example of Video Tag</h2> <video width="500" height="375" controls="controls"> <source src="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>
Output:
Share:
Comments
Waiting for your comments