HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
HTML <video> tag : A video player with a specified height and width
The height
attribute specifies the height of a video player, in pixels.
height
and
width
attributes for videos. If these attributes are set, the required space for the
video is reserved when the page is loaded. However, without these attributes,
the browser does not know the size of the video, and cannot reserve the
appropriate space to it. The effect will be that the page layout will change
during loading (while the video loads).
height
and
width
attributes!
Downsizing a large video with these attributes forces a user to
download the original video (even if it looks small on the page). The correct
way to rescale a video is with a program, before using it on a web page.
Attribute | |||||
---|---|---|---|---|---|
height | 4.0 | 9.0 | 3.5 | 3.1 | 11.5 |
Value | Description |
---|---|
pixels | The height of the video, in pixels (i.e. height="100") |
❮ HTML <video> tag