0

Can someone answer the question please: How can we play song in our html?

31st Aug 2016, 10:12 AM
BB1998
BB1998 - avatar
5 odpowiedzi
+ 2
repeat
9th Sep 2020, 8:22 AM
freelancer himayetali
freelancer himayetali - avatar
0
It is due to the <audio> element which is used to insert the audio track with its type and url. If our browser is supports that type then the audio will start playing by adding the autoplay attribute as follow <audio controls autoplay>
31st Aug 2016, 3:23 PM
Saladhi DeviPawankumar
Saladhi DeviPawankumar - avatar
0
use the <audio> element and DO NOT FORGET to put the audio file in the folder were the HTML document is. Reminder: <audio controls> <source src="audio.mp3" type="audio/mpeg"> </audio>
2nd Sep 2016, 3:35 PM
Andrei Zamfir
Andrei Zamfir - avatar
0
Repeat
14th Nov 2020, 4:13 AM
JaKayla Eaddy
0
repeat
19th Oct 2022, 1:35 PM
farid khairy