Setting Video Dimensions

We can customize the size of the video player by specifying the width and height of the video player:

Add the width and height attributes, and their corresponding values, to video.

<video controls width="640" height="360">
<source src="video.mp4" type="video/mp4" />
<source src="video.ogv" type="video/ogg" /> Your device does not support HTML5 video.
Related Tutorial
Follow Us #