XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / audio
(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
HTML 5 |
audio
<audio> ... </audio>
Embeds an audio file in the web page using a browser plugin. The content of the audio element can be used by browsers that do not support the element itself.
Notes
HTML 5 only. Discussions are ongoing about which audio formats the audio element should support, mainly the open source Ogg Vorbis format or proprietary but more popular formats such as .mp3. When this reference was written, the element audio was supported by Firefox 3.5+, Safari 3.2+ and Opera 10.0+. Chrome support was in progress, while Internet Explorer had announced no plans to support audio.
Start/end tag
Required/required
Attributes
autobuffer(orautobuffer="autobuffer"in XHTML 5)Tells the user agent that the media file will probably be used and should be immediately available.
autoplay(orautoplay="autoplay"in XHTML 5)Causes the media file to play automatically.
controls(orcontrols="controls"in XHTML 5)Instructs the user agent (browser) to display playback controls for the media file.
loop(orloop="loop"in XHTML 5)Instructs the browser to replay the media file automatically when it ends.
src="URL"Specifies the location of the media file.
Examples
<audio src="beachmusic.ogg" autoplay controls>
Dieser Browser unterstützt keine <code>audio</code>-Elemente.
</audio>
|
Copyright © 2010 O’Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from "HTML & XHTML ─ kurz & gut" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de