0
please help me to add background music in my blog..the music will play when we open the blog...
background music
5 Answers
+ 4
Use this code:-
<audio controls autoplay>
    <source src="http://www.sololearn.com/uploads/audio.mp3" type="audio/mpeg">
    <source src="http://www.sololearn.com/uploads/audio.ogg" type="audio/ogg">
    Audio element not supported by your browser. 
</audio>
+ 2
This is a text, which will display if audio formats is not supported by your browser, mean if your browser unable to play songs of these formats. 
+ 1
yeah it does auto play play as soon it loads without asking permission. As it is a part of html5 you must start your code with <!DOCTYPE HTML> đ
0
"audio element not supported by your browser"..means??is this also include in the code?
0
@tripathy.  Does it play automatically??







