When listing the HTML dimension attributes belonging to tags such as <img>
and <video>
, we have the option of including width
before height
, and vice versa. For example:
<video width="320" height="240">
which is the equivalent to
<video height="240" width="320">
Or
<img src="shihtzu.jpg" width="50" height="50" alt="">
which is equal to
<img src="shihtzu.jpg" height="50" width="50" alt="">
The convention, however, is to list width
before height
. Browsers do it. Image previewers do it.
In Firefox, for example, if you hover your mouse over an image and perform a context-click (right-click for right handers), choose View Image…