The video tag is similar to an html image tag:
<video src= "video.mp4"> </video>
If you need to specify dimensions for the video, add attributes as for image:
<video src= "video.mp4" width= "600" height="270"> </video>
You can also define the dimension via CSS.
Another advantage is that if the dimension given is not compatible for the browser, the browser simply centres the video within the box, so no more worry about messing.
No comments:
Post a Comment