HTML and CSS Reference
In-Depth Information
itemtype="microdata type in URL format"
lang="language code"
loop="loop"
spellcheck="true | false"
src="URL of audio"
style="style information"
tabindex="number"
title="advisory text">
</audio>
HTML5 Event Attributes
onabort, onblur, oncanplay, oncanplaythrough, onchange, onclick,
oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave,
ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended,
onerror, onfocus, onformchange, onforminput, oninput, oninvalid, onkeydown,
onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart,
onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel,
onpause, onplay, onplaying, onprogress, onratechange, onreadystatechange,
onscroll, onseeked, onseeking, onselect, onshow, onstalled, onsubmit,
onsuspend, ontimeupdate, onvolumechange, onwaiting
Element-Specific Attributes
autobuffer This Boolean attribute indicates whether or not the browser should begin
buffering audio right away. It is often set when it is believed that the audio will be played.
This is valuable when autoplay is not set, but the attribute has no meaning if autoplay is
set since the browser will play the audio as soon as it can.
autoplay This Boolean attribute indicates the browser should begin playing the audio as
soon after page load once it has loaded enough of the audio to avoid pausing.
controls This Boolean attribute is set to indicate whether or not the browser should present
the controls for audio, such as playback, pause, volume, and seek. If not present, no controls
will be shown and it will be up to the developer to script the control of the media playback.
When no controls are present, the audio element will not be visually presented.
loop This Boolean attribute, if present, indicates that the audio should loop.
src This attribute is set to the URL of the audio to show.
Examples
<audio src="music.ogg" autoplay>
<p> No support for HTML5 <code> audio </code> element. </p>
</audio>
<audio src="music.ogg" loop controls>
<p> No support for HTML5 <code> audio </code> element. </p>
</audio>
Search WWH ::




Custom Search