HTML 5: The Markup Language

sourcemedia source # T

The source element enables multiple media sources to be specified for audio video .

Content model #

Attribute model #

Element-specific attributes #

src = uri
The address of the media source.
type = mimetype
The type of the media source (used for helping the UA determine, before fetching this media source, if it can play it).
media = mediaquery
The intended media type of the media source (used for helping the UA determine, before fetching this media source, if it is useful to the user).

Tag omission #

The source element is a void element. A source element must have a start tag but must not have an end tag.

Permitted contexts #

Details #

Each separate media source specified within a source element is a complete set of media data — for example, a complete video file, or a complete audio file).