The HTML <video> height Attribute is used to set the height of video player in terms of pixels. This attribute is new in HTML5.
Syntax:
<video height="pixels">
Attribute Values: It contains single value pixels which set the height of video frame.
Example:
<!DOCTYPE html> <html> <head> <title>HTML video height Attribute</title> </head> <body> <center> <h1 style="color:green;">GeeksforGeeks</h1> <h3>HTML video height Attribute</h3> <video width="400" height="200" controls> <source src= type="video/mp4"> <source src= type="video/ogg"> </video> </center> </body> </html> |
Output:

Note: Downsizing a large size video with the height and width attributes forces users to download the original video. The best way to rescale videos is with a program, before using it on a page.
Supported Browsers: The browser supported by HTML <video> height Attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera
Recommended Posts:
- HTML | <img> height Attribute
- HTML | <th> height Attribute
- HTML | <td> height Attribute
- HTML | height Attribute
- HTML width/height Attribute vs CSS width/height Property
- HTML | <canvas> height Attribute
- HTML | <input> height Attribute
- HTML | <embed> height Attribute
- HTML | applet height Attribute
- HTML | <video> height Attribute
- HTML | Marquee height attribute
- HTML | <object> height Attribute
- HTML | <iframe> height Attribute
- HTML | DOM Video height Property
- HTML | DOM Object Height Property
- HTML | DOM IFrame height Property
- HTML | DOM embed height property
- HTML | Screen height Property
- HTML | DOM Style height Property
- HTML | canvas ImageData height Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


