0
Can someone answer the question please: How can we play song in our html?
5 Réponses
+ 2
repeat
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>
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>
0
Repeat
0
repeat