Saturday 21 September 2013

HTML5 Video Element Full Instructions.

                                            HTML5 Video Element Full Instructions.


After 4 lessons about #HTML5 video element let me show you all steps for adding video to webpage.
1.We use the <video> element.
2.We use *src element to show the browser where is our video.
3.We use *width and *height to resize our video frame.
4.We also use *poster element to choose video poster image.
5.We use *controls and *autoplay elements. The control elements shows controls on Your video like Play, Pause, Full Screen button etc. If you don't want Your video to start automatically remove autoplay element.
6.We use <source> element to allow inclusion of multiple video formats. The *src element again is used to show the location of our video. The *type attribute also allows a codec parameter to be specified, which defines the
video and audio codecs for the requested file.

<video src="example.mp4" width="375" height="280" poster="set image here.jpg" controls autoplay></video>
<source src="example.mp4" type="video/mp4">

We are Learn Html. And we are best.
#Griffin

#EasilyLearnHTML

No comments:

Post a Comment