HTML 5 <source> Tag
Definition and Usage
The <source> tag defines media resources for media elements, such as
<video> and <audio>.
Differences Between HTML 4.01 and HTML 5
The <source> tag is new in HTML 5.
Attributes
New : New in HTML 5.
Attribute |
Value |
Description |
mediaNew |
media query |
Defines the type of media resource, for browsers to decide if it shall
download it or not. |
srcNew |
url |
The URL of the media |
typeNew |
numeric value |
Defines where in the audio stream the player should start
playing. As default, the audio starts playing at the beginning. |
Standard Attributes
The <a> tag also supports the Standard Attributes in HTML 5.
Event Attributes
The <a> tag also supports the Event Attributes
in HTML 5.
|