website mp3 file

Michaela521

New Member
I am trying to make a website. Does anybody here know how to start a music file when someone visits a page in your website. The file starts automatically when they visit the page. Thanks
 
Last edited:
With html, you can embed it. This makes it play on an on. If you only want to play it once, remove the loop="infinite"

Code:
<bgsound src="songfile.format" loop="infinite">

In some cases, you might have the put it in an embed tag and noembed tag if you are trying to make it compatible with older, older browsers.
 
Back
Top