HTMLPictureElement
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The HTMLPictureElement
interface represents a <picture>
HTML element. It doesn't implement specific properties or methods.
Properties
No specific property, but inherits properties from its parent, HTMLElement
.
Methods
No specific method, but inherits methods from its parent, HTMLElement
.
Specifications
Specification |
---|
HTML Standard (HTML) # htmlpictureelement |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
HTMLPictureElement |
38 |
13 |
38 |
No |
25 |
9.1 |
38 |
38 |
38 |
25 |
9.3 |
3.0 |
See also
- The
<picture>
HTML element that implements it. - The
HTMLImageElement
andHTMLSourceElement
interfaces, often used in conjunction with a<picture>
element.
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLPictureElement