The HTMLPictureElement
interface represents a <picture>
HTML element. It doesn't implement specific properties or methods.
HTMLPictureElement
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2016.
Instance properties
No specific property, but inherits properties from its parent, HTMLElement
.
Instance methods
No specific method, but inherits methods from its parent, HTMLElement
.
Specifications
Specification |
---|
HTML Standard # htmlpictureelement |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | ||
HTMLPictureElement |
38 | 13 | 38 | 25 | 9.1 | 38 | 38 | 25 | 9.3 | 3.0 | 38 |
See also
- The
<picture>
HTML element that implements it. - The
HTMLImageElement
andHTMLSourceElement
interfaces, often used in conjunction with a<picture>
element.
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLPictureElement