HTML 5 SOURCE TAG

From http://www.w3schools.com (Copyright Refsnes Data)

# 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

Attribute | Value | Description
--- | --- | ---
media | media query | Defines the type of media resource, for browsers to decide if it shall download it or not.
src | url | The URL of the media
type | numeric value | Defines where in the audio stream the player should start playing. As default, the audio starts playing at the beginning.

## Standard Attributes

class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title

For a full description, go to Standard Attributes in HTML 5.

## Event Attributes

onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup, onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout, onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload

For a full description, go to Event Attributes in HTML 5.

From http://www.w3schools.com (Copyright Refsnes Data)