HTML:- Audio autoplay

<!DOCTYPE html>
<html>

<head>
 <meta name="viewport" content="width=device-width, initial-scale=1">
</head>

<body>

 <!--Please Volume up your mobile-->
 <!--Automatically play when load this page-->
 <audio autoplay="true" src="song.MP3">
 </audio>

</body>

</html>



Used of:-
  • This tag defines sound, such as music or other audio streams.
  • The URL of the audio should be in src and for automatic playing the autoplayattribute value set as true. Otherwise you can play it using javascript code.


HTML:- Audio autoplay HTML:- Audio autoplay Reviewed by Network security on May 05, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.