<source>
HTML <source> Element Reference
The HTML <source> element provides an alternative media or image resource for picture, audio, or video.
Categories
- Embedded content
Tag omission
This is a void element and does not have an end tag.
Content model
- Detailed content-model guidance will be added to this reference.
Attributes
Examples
Example
A practical source element example.
<video controls>
<source src="demo.webm" type="video/webm">
<source src="demo.mp4" type="video/mp4">
</video>