The <music> Tag
Purpose
The <music> tag allows you to add background music or sound effects.
Attributes
| Attribute | Description |
|---|---|
src (required) | Path to the music file |
loop (optional) | Boolean to loop the music |
start (optional) | Start time of the music |
end (optional) | End time of the music |
Example
<music src="background.mp3" loop="true" start="0s" end="10s" />