The height attribute on a <video> tag sets the height of the video player.
The height is specified in pixels - without the ‘px‘ unit.
A <video> element with a height attribute.
<video width="320" height="240" controls>
<source src="/media/movie.mp4" type="video/mp4">
<source src="/media/movie.ogg" type="video/ogg">
</video>
The height attribute specifies the height of the video player.
The height is specified in pixels -- without the 'px' unit.
<video height="pixels">
Value | Description |
---|---|
pixels | Height of the video player in pixels. |
Here is when height support started for each browser:
Chrome
|
4.0 | Jan 2010 |
Firefox
|
3.5 | Jun 2009 |
IE/Edge
|
9.0 | Mar 2011 |
Opera
|
11.5 | Aug 2011 |
Safari
|
3.1 | Mar 2008 |