How to play songs in HTML page?

 



In this post you can learn to play a songs or audios in HTML page. The steps are given below
  1. First we have to create an new html page and save as audio.html.
  2. Let start with the html tag in the empty page.
  3. Inside the html tag create an head tag.
  4. Inside the head tag create an title tag and give the name of the page.
  5. Then create an body tag and create an audio tag.
  6. Inside the audio tag we have to give the source of the audio .

Example code is given below:

<html>
  <head>
    <title>Inserting audio page</title>  
  </head>

<body>
    <audio controls>
    <source src="http://isaiminihits.net/down.php?ses=5cb1ed00&file=Tamil%202021%20Songs/Karnan/128/Kandaa%20Vara%20Sollunga.mp3" type="audio/ogg">
    </audio>
</body>

</html>

CLICK THE BELOW DEMO BUTTON TO CHECK THE PREVIEW OF THE ABOVE PROGRAM



1 تعليقات

إرسال تعليق

Post a Comment

أحدث أقدم