HTML4 HTML5
Used to embed audio files (e.g., music, podcasts) into a webpage.
Both opening and closing tags are required.
Attributes:
controls - Displays default browser media controls (play button, progress bar, volume controls).
autoplay - Automatically starts playing audio upon page load (often blocked by modern browsers).
loop - Causes the audio to replay continuously.
muted - Mutes the sound by default when the player loads.
Code:
The browser will interpret this code as follows: