Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML audio loop attribute

HTML

HTML audio Tag Reference HTML

Example

Set the audio to loop playback:

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 9+, Firefox, Opera, Chrome, and Safari browsers support the loop attribute.

Note: Not supported by Internet Explorer 8 and earlier IE browsers


Definition and Usage

The loop attribute is a boolean attribute.

If this attribute is set, the audio will play in a loop.


Differences between HTML 4.01 and HTML5


Differences between HTML and XHTML

In XHTML, shorthand is not allowed for this attribute; the loop attribute must be defined as


Syntax