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.