<SOURCE>

Tag Description

<source> used to define resources for media elements, such as audio and video. New in HTML5.

Code Example

<video controls="controls">
<source src="media/video/movie01.ogg" type="video/ogg" />
<source src="media/video/movie01.mp4" type="video/mp4" />
Video element not supported
</video>

Result

Attributes

Attribute Value Description
media query Defines the type of media resource
src URL Media source
type number Defines where in the audio stream the player should begin

Browser Support

Browser Comment
Firefox Yes
Safari Yes
Chrome Yes
Opera Yes
IE 9 Yes
IE <= 8 No

Notes

Title

details

Thanks for visiting!