When writing in HTML, the tag is used to embed sound files in to a web page. Because the sound file plays automatically when the page loads, and this tag is only supported in Internet Explorer, we recommend using

Example code

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique HTML attributes for the tag, and a description of each.

  • Example code
  • Attributes
  • Compatibility
  • Related information

Compatibility

Autoplay, Browser, Compatibility, Loop, Mute, Web design terms, Web page

  • How to insert a movie or video in an HTML document.
  • How to create a link to play a sound file in HTML.
  • HTML and web design help and support.