Name

<bgsound> — NN: 2, 3, 4 &bull; MSIE: 2, 3, 4, 5 &bull; HTML 4 &bull; WebTV &bull; Opera3

Synopsis

<bgsound>

Plays an audio file automatically in the background when the document loads in the browser.

Attributes

src=url

This required attribute provides the URL of the audio file to be downloaded and played.

loop=number|infinite

Sets the number of times the sound file should play. The value can be a number or set to infinite.

Get HTML Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.