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.

Further information

The Web Design Academy Contact us

By form

By Phone

+44 (0)113 234 4611

By email

enquiries@thewebdesign.academy

By snail mail

Suite 3 15 South Parade Leeds LS1 5PQ United Kingdom