Attributes for Customization

Attribute Description
autoplay Starts playing the audio automatically when the page loads.
loop Loops the audio playback, allowing it to repeat continuously.
preload Specifies whether the audio should be loaded when the page loads. Options include none, metadata, and auto.
controls Designates what controls to display with the audio player. If present, the audio player includes playback controls.
muted Designates that the audio file should be muted by default when loaded.

How does the Element work in HTML5?

HTML5 introduces the <audio> element, providing native support for embedding audio content directly into web pages. This element offers a seamless and better way to include audio files without relying on third-party plugins.

Similar Reads

Syntax

...

Supported Audio Formats

HTML5

Attributes for Customization

Attribute Description autoplay Starts playing the audio automatically when the page loads. loop Loops the audio playback, allowing it to repeat continuously. preload Specifies whether the audio should be loaded when the page loads. Options include none, metadata, and auto. controls Designates what controls to display with the audio player. If present, the audio player includes playback controls. muted Designates that the audio file should be muted by default when loaded....