HTML source tag
HTML <source> tag has no special meaning at all. But as a child of other media elements such as video or audio, it can embed video or audio.
<video height="300" width="300" controls> <source src="files/Hummingbird.mp4" type="video/mp4"> </video></>
More than one source elements can be used as a child of audio or video elements for the same video but with different type. In this case, if the browser does not support one type of media, then another type is executed.
Both starting and ending tags are necessary for the source tag.
All the global attributes are applicable on the <source> element.
Was this article helpful?