HTML Audio

  • Post author:
  • Post category:HTML
  • Post comments:0 Comments

HTML Audio

Sometimes we have to add audio to our website, then with the help of audio elements, we can add audio anywhere on our website.

Here is the sample code

<!DOCTYPE html>
<html>
<head>
<title> adding audio in website </title>
</head>
<body>
<audio controls>
   <source src="file-name.mp3" type="audio/mp3"></source>
   <source src="file-name.ogg" type="audio/ogg">

<h1>
Thanks For Reading
</h1>
</body>
</html>

Leave a Reply