Course Content

  • How to put audio in HTML?
  • audio_example

Course Content


Audio controls, such as play, pause, and volume, are added with the controls attribute. You can use the source> element to specify different audio files for the browser to choose from. The browser will use the first format it recognises.

Using a sound hosting site like SoundCloud or Mixcloud to embed audio on a website is a simple process. Simply upload the file and you'll be given an HTML embed code. The embed code should then be copied and pasted into the web page's code or WYSIWYG site editor. This is applicable to the majority of CMS platforms and website builders.

The audio> tag is used to embed sound material, such as music or other audio streams, into a document. Only browsers that do not support the audio> element will see the text between the audio> and /audio> tags. HTML supports three different audio formats: MP3, WAV, and OGG.

  • src The source is represented by this attribute, which is quite similar to the src attribute in the image element. In the src attribute, we'll include a link to a video file.
  • type Because the video we're utilising is in the.mp4 format, this will be video/mp4.

This wikiHow will show you how to make a link to an MP3 file you've uploaded. You must first upload the MP3 song to a cloud storage service like Google Drive or iCloud, or to an online music service like SoundCloud, in order to connect to it. You can share the song using the URL when it has been uploaded.

Recommended Courses

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere