The <video> tag use for embedding video in a web page. It has many attribute. But in this tutorial, we will introduce you to about the height and width attribute . They define height and width of media.
|height||pixel||Define height of media.|
|width||pixel||Define width of media.|
Declaration syntax of height and width attribute of video tag in HTML5.
<video poster="Image URL" > Content </video >|
<video srd="URL" >Content </video >
<!doctype html >|
<title>Video Tag attributes.</title>
<b>Implementation of height and width attribute of video tag in HTML5.
<video src="Video1.mp4" controls height="200px" width="250px">
Browser does not support video tag.
The video tag is only available in HTML5. It is not available in HTML4.01.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.