Video Tag in HTML 5

14 / Oct / 2010 by Umar 0 comments

Video define new element in html 5. video play without third party plugins as Apple Quict Time and Adobe Flash player.The video element is dectect to be usable without any detection script.
You can specify multi video file and browser that support html 5 video use choose the base on what video format they support.
this use tag in html

<video src="movie.ogg" controls="controls">

your browser does not support the video tag


Definition and Usage
The video tag defines video, such as a movie clip or other video streams.

Tips and Notes
You can write text between the start and end tags, to show older browser that they do not support this tag.

Optional Attributes

Attribute Value Description
autoplay autoplay If present, then the video will start playing as soon as it is ready
controls controls If present, controls will be displayed, such as a play button.
height height Sets the height of the video player
loop loop If present, the video will start over again, every time it is finished.
preload preload If present, the video will be loaded at page load, and ready to run. Ignored if "autoplay" is present.
src url The URL of the video to play
width pixel Sets the width of the video player

Support browser

IE Firefox Safari Chrome Opera iPhone Android
9.0+ 3.5+ 3.0+ 3.0+ 10.5+ 1.0+ 2.0+

Tag -

video html5

Leave a Reply

Your email address will not be published. Required fields are marked *