HTML · Image and media attributes

height

Intrinsic height in pixels. CSS can still scale the element responsively.

Syntax
height="80"

Example

Try it

More in this group

allow allowfullscreen alt autoplay controls decoding default ismap

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course