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

Global HTML 5 attributes

  • autobuffer (or autobuffer="autobuffer" in XHTML 5)

    Tells the user agent that the media file will probably be used and should be immediately available.

  • autoplay (or autoplay="autoplay" in XHTML 5)

    Causes the media file to play automatically.

  • controls (or controls="controls" in XHTML 5)

    Instructs the user agent (browser) to display playback controls for the media file.

  • loop (or loop="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>

 

> back to the alphabetical list of elements

   

 

 

 

back to top