You may have music automatically play in the background of a web page, or allow a visitor to control whether or not the music plays.
Upload the music file to your site via a Multimedia page. NOTE:
We recommend only using .mp3 files as this is a very common file type. Other file types may not work, depending on your visitor's browser and file support on their computer.
View the Multimedia page, right-click the link to the file and choose 'Copy Shortcut' or 'Copy Link Location'. You will need this address in a later step.
Edit the page you want to play the music on.
Background Music
On the Easy Editor toolbar click on the 'HTML' button.
At the very top of your content, type in the following code:
<audio src="YOURFILENAMEHERE.mp3"></audio>
If you want the music to autoplay or loop, you can add the "autoplay" or "loop" attributes. You can also add the "controls" attribute to display volume and play/pause controls. Here is an example with all three enabled:
Make the following changes to the code you just pasted in the above step:
Delete YOURFILENAMEHERE.mp3 and paste (CTRL+V) the address you copied for your music file.
Save your changes by clicking the green 'Save' button at the top right and bottom of your edit page. View your page.
If Your Music Does Not Play
Ensure
you have the address of the music file correct by pasting in the
address into your browser. If your browser prompts you to save the
file, you have the correct address.
Most browsers require a
plugin installed so that they know how to handle the media file. Check
for any messages regarding installing a plugin.