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

10/22/2018 1:16:28 AM

Ratnapal Shende

7 Answers

New Answer


I took a look at the code on your profile. You want to change src="https://drive.google.com/file/d/1bTW0KsPaehTb9Oh9zHoI58tYEcQTDq1h/preview?uc=sharing" To src="https://drive.google.com/uc?id=1bTW0KsPaehTb9Oh9zHoI58tYEcQTDq1h"


Robert Aros Thank you so much sir


Agree with Robert Aros Host your Music file & add the link to the src https://www.sololearn.com/discuss/1054246/?ref=app


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


Definitely a good add!




i do I love this studying