Legacy & Obsolete Elements

<bgsound>

Obsolete or historical HTML; do not use in new documents. Requested background audio in some older browsers. Use audio with visible controls and let the user choose playback; autoplay with sound may be blocked. The syntax shows old markup for recognition only. The runnable example demonstrates a modern migration pattern, not the obsolete behavior.

Formal Syntax & Structure

html syntaxhtml
<bgsound src="theme.mp3">

Working Example

Example Snippethtml
<audio controls src="theme.mp3">Audio playback unavailable.</audio>
HTML Reference