Html5 Video Tag

Now days many videos are showing a flash plug-in but unstill now never standard video player for the web site.HTML5 is provides to standard for playing video.which video player is use to insert video file into a can use in this video player multiple formats for different browsers.

Example Code

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

Out Put :

Screen Shot :

The controls attribute tag is used to adding play, pause and volume controls.The video tag allows can insert multiple source elements. Source elements can link to different video files.

Attribute :

  • Autoplay : when you comming in this page the video will buffer and plays immediately.
  • Controls : Adds playback controls.
  • loop : when video is finished playing it will use to replays the video.
  • preload : It is use to when you come to this page it video will finish buffer but does not play the video.
  • Src : video file to specifies the URL.
  • Height : Height Attribute is use to you can give to specified height to video.
  • Width : Width Attribute is use to you can give to specified width to video.