+ 13

How to add song in my html program on SoloLearn ?

I did coding for it but song is not playing. and I want with autoplay feature hope u understand

22nd Oct 2018, 1:16 AM
Ratnapal Shende
Ratnapal Shende - avatar
7 ответов
22nd Oct 2018, 5:49 AM
Robert Aros
Robert Aros - avatar
+ 12
Robert Aros Thank you so much sir
22nd Oct 2018, 8:31 AM
Ratnapal Shende
Ratnapal Shende - avatar
+ 8
Agree with Robert Aros Host your Music file & add the link to the src https://www.sololearn.com/discuss/1054246/?ref=app
22nd Oct 2018, 4:04 AM
Jaydeep Khatri
Jaydeep Khatri - avatar
+ 4
I found an article which describes how to use the audio tag. In short, it looks like you need the 2 attributes for each source tag inside your audio tag; 'src' which specifies the source (either url or file) and 'type' which specifies the file type. <audio controls autoplay> <source src='audioFile.mp3' type='audio/mpeg'> <source src='audioFile.ogg' type='audio/ogg'> </audio> Cred: https://www.w3schools.com/tags/tag_audio.asp
22nd Oct 2018, 2:54 AM
Robert Aros
Robert Aros - avatar
+ 2
Definitely a good add!
22nd Oct 2018, 4:10 AM
Robert Aros
Robert Aros - avatar
+ 2
Anytime!
22nd Oct 2018, 1:32 PM
Robert Aros
Robert Aros - avatar
+ 1
i do I love this studying
22nd Oct 2018, 4:43 PM
Rhea
Rhea - avatar