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>
<title> adding audio in website </title>
<audio controls>
   <source src="file-name.mp3" type="audio/mp3"></source>
   <source src="file-name.ogg" type="audio/ogg">

Thanks For Reading

Leave a Reply