<source> tag in HTML5

The <source> tag is used to specify multiple media resources on media elements, such as <video>, <audio>, and <picture> tags.

Important Description

  • The <source> tag is new in HTML5.
  • The <source> tag has no end tag in HTML.
  • Must be closed in XHTML, it's look like <source />.

Example of <source> tag

Result Look Like

Your browser does not support the audio element.

<source> Tag Browser Support

The <source> tag is not supported in Internet Explorer 8 and earlier versions.

Element Chrome Edge Firefox Safari Opera
<source> Yes Yes Yes Yes Yes
Version 4.0 9.0 3.5 4.0 10.5

Global Attributes

Event Attributes


Attribute Value Description
src URL Specifies the location of the audio/video file. Its value must be the URL of an audio/video file.
media media_query Accepts any valid media query that would normally be defined in a CSS
type MIME-type Specifies the type of the embedded content. If specified, the value must be a MIME type.

Advertise With Us

We offer sponsored posts and guest posts with do-follow links, back-links, and other advertising services, To advertise email us at ""

© 2021 GDATAMART.COM (All Rights Reserved)