The <source>
element
Specifies a file which can be used for video or audio data in a <video>
or <audio>
element respectively, or for a particular image that can be selected by MIME type and media query in a <picture>
element.
This is an empty element, so it shouldn't have a closing tag.
Full list of attributes
All the usual HTML global attributes are available
media
- A media query that the browser can used to select an appropriate source. It defaults to
all
. src
- The URI of the media resource.
type
- The MIME type of the video, audio, or image file this element represents. The MIME
codecs
parameter can be used to refine this information.