twitter rss feed

html5 laboratory

The <audio> element

Description

This element defines audio content within a HTML document.

Tags

This element must have a start and an end tag

Attributes

This element accepts the standard set of common attributes. But also the following:

Attribute Description
autobuffer a boolean indicating whether the file should be buffered in advance
autoplay a boolean indicating whether the file should be played automatically
controls a boolean indicating that the default media controls should be displayed by the browser
loop a boolean indicating whether the file should be played repeatedly
src a valid URL to the sound file itself

Notes

  • This element cannot appear as a descendant of the <a> element
  • This element cannot appear as a descendant of the <button> element
  • This element can also contain a listing of <source> elements