Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for HTMLSourceElement.
Developer library 6
Media technologies on the web
o specify source media to present. Multiple sources can be used to provide the media in different formats, sizes, or resolutions. Accessible from JavaScript as HTMLSourceElement objects. ### APIs - [Media Capabilities API](/docs/Web/API/Media_Capabilities_API) - : The Media Capabilities API lets you determine the encoding and decoding capabilities of the device your app or site is running on. This lets you make r
` ` HTML media or image source element
<th scope="row">Permitted ARIA roles</th> <td>No <code>role</code> permitted</td> </tr> <tr> <th scope="row">DOM interface</th> <td>HTMLSourceElement</td> </tr> </tbody> </table> ## Specifications ## Browser compatibility ## See also - audio element - picture element - video element - [Image file type and format guide](/docs/Web/Media/Guides/Formats/Image_types) - [Media type
HTMLSourceElement
HTML DOM The **`HTMLSourceElement`** interface provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating source elements. ## Instance properties _Inherits properties from its parent, HTMLElement._ - HTMLSourceElement.height - : A number that reflects the [`height`](/docs/Web/HTML/Reference/Elements/source#height) HTML attribute, i
HTMLSourceElement: media property
HTML DOM The **`media`** property of the HTMLSourceElement interface is a string representing the intended destination medium for the resource. The value is a [media query](/docs/Web/CSS/Guides/Media_queries/Using), which is a comma separated list of media-types, media-features, and logical operators. It reflects the `media` attribute of the source element. ## Value A string. ## Examples ```html <video> <sour
HTMLSourceElement: height property
HTML DOM 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. ## Value A non-negative number indicating the height of the image resource in CSS pixels. ## Examples `
HTMLSourceElement: src property
HTML DOM The **`src`** property of the HTMLSourceElement interface is a string indicating the URL of a media resource to use as the source for the element. It reflects the `src` attribute of the source element nested in an audio or video element. It has no meaning and is ignored when it is nested in a picture element. ## Value A string; the URL of a source resource to use in the element. ## Examples ```html <vi