- 1). Upload your chosen song to the main folder of your website, also known as the index folder, and give it a name you can easily remember, such as beethoven.mid or beatles.mp3.
- 2). Insert the following code into the <Head> section of your homepage HTML code, somewhere between <Head> and </Head>:
<embed src="beatles.mp3" autostart="true" loop="false">
Replace "beatles.mp3" with the name of your song file. - 3). Decide if you want the song to repeat on a loop. If so, change the "loop=" from "false" to "true" in the code you just inserted. If you want the song to play once and then stop, you do not need to edit the code.
- 4). Save your updated HTML and upload the page to your site.
SHARE