Audio

Audio can be added anywhere within your web page. You will only be asked to display audio that are in your folder, not online audio clips.

Key Points

Audio is displayed using the <audio> tag and closed using the </audio> tag.

An additional line is required to set the source of the audio.

Adding Audio

To add audio to your page you must first create the audio using an <audio> tag.

Inside the video you must set the <source> which sets the location of your audio and the audios file type.

Adding audio

<audio controls>
    <source src="music.mp3" type="audio/mp3">
</audio>

Adding audio that is in a folder

<audio controls>
    <source src="audio/music.mp3" type="audio/mp3">
</audio>

National 5 Target

You should be able to add audio to a web page.