The audio tag can create an HTML5 audio player that can play various audio files in the browser.
src
source of the audio file
- Valid Audio URL
preload
Enable buffering of the audio file prior to playing
- none: no preloading. Starts audio loading after playback has been invoked.
- metadata: Loads only meta data from audio files.
- auto: enables downloading a chunk of the file before playback begins.
autoplay
Enables autoplaying of the audio file
- None
loop
Enables play loop of the same file after it finishes playback.
- None
muted
Mutes audio until unmuted manually.
- None
controls
Enables default playback buttons to control the audio
- None
crossorigin
Denotes how crows browser requests should handle.
- anonymous
- use-credentials
Example of the default audio player:
Edit Example