NEW

6/recent/ticker-posts

Header Ads Widget

HTML Video Tag

 

HTML Video Tag

HTML 5 supports <video> tag also. The HTML video tag is used for streaming video files such as a movie clip, song clip on the web page.

Currently, there are three video formats supported for HTML video tag:

  1. mp4
  2. webM
  3. ogg

Let's see the table that defines which web browser supports video file format.

Browsermp4webMogg
ie browser Internet Exploreryesnono
chrome browser Google Chromeyesyesyes
firefox browser Mozilla Firefoxyesyesyes
opera browser Operanoyesyes
safari browser Apple Safariyesnono

Android also supports mp4 format.

HTML Video Tag Example

Let's see the code to play mp4 file using HTML video tag.

  

  1.   <video controls><source src="movie.mp4" type="video/mp4">  
  2.   Your browser does not support the html video tag.  
  3. </video>  

Let's see the example to play ogg file using HTML video tag.

  1. <video controls>  
  2.    <source src="movie.ogg" type="video/ogg">  
  3.   Your browser does not support the html video tag.  
  4. </video>  

Post a Comment

0 Comments

Recents Post

Exploring Paidwork - Your Gateway to Earning Online