Get to know MDN better
The height property of the HTMLSourceElement interface is a non-negative number indicating the height of the image resource in CSS pixels.
The property has an effect only if the parent of the current <source> element is a <picture> element.
It reflects the height attribute of the <source> element.
A non-negative number indicating the height of the image resource in CSS pixels.
| HTML # dom-source-height |
| HTML # dimension-attributes |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jul 1, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.