Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
- Element of
- Embedding Modern Media With HTML5: Get The Code & Instructions To Succeed
- What does
<source> HTML Tagdo?
- The <source> element is used as a child of a <picture>, <audio>, or <video> element, and identifies the URL of one or more media resources. The <source> element is commonly used to add media resources in multiple formats for the best possible cross-browser compatibility.
- Null element
- This element must not contain any content, and does not need a closing tag.
The purpose of
<source> is to define multiple versions of a file, so you can specify different versions for different browsers or platforms. You can use
<source> within either
Browser Support for source