1 <audio controls>
2<source src="sound.ogg" type="audio/ogg">
3<source src="sound.mp3" type="audio/mpeg">
4No audio support.
5</audio>
6
1_______________________________________________________________________________________
2
3### Audio(s) ###
4
5
6### Adding a audio file is almost the same as adding a video file here is the basic code line :
7<audio controls >
8
9 <source src="Type here the location of your audio" />
10</audio>
11
12### just like adding a style to video(s) its done like this :
13<audio controls class="The name of your style" >
14
15 <source src="The location of your audio" />
16</audio>
17
18### If you don't know how to make a style? i will be maybe uploading a tutorial on it later
19
20
21### You can customize the audio if you don't want to use a style very easy
22<audio controls autoplay loop preload="" >
23
24 <source src="The location of your audio" />
25</audio>
26
27### "autoplay" = It will play automaticly when you go to the html page
28### "loop" = If you add this the file will never stop playing. when it ends it will start over again
29### "preload" = You have 3 types of preloading. 1="auto" It will automaticly load. 2="metadata" It will load before the metadata. 3="none" It will just load
30### like it normaly does
31
32### You can also add above or under the line <source> the words: "Your Browser does Not support This music File. Please Try another browser"
33### You just have to add the text nothing else and it will display when the audio file can't load.
34
35
36
37## here is an example i made:
38<audio controls autoplay loop preload="metadata" >
39 <source src="/audio/audiofile3904.mp3" />
40 Your Browser does Not support This music File. Please Try another Browser
41</audio>
42
43_______________________________________________________________________________________
44
45# If this code helped you please leave a like on it. If you want to see more of this follow me
46# Or just take a look at another answer of my answers
47#
48# THIS CODE HAS BEEN MADE BY : Vast Vicuña
49
50
1<audio controls>
2
3 <source src="flag.ogg" type="audio/ogg">
4
5 <source src="flag.mp3" type="audio/mpeg">
6
7</audio>
1MIME Types for Audio Formats
2Format MIME-type
3MP3 audio/mpeg
4OGG audio/ogg
5WAV audio/wav
6
7If simply audio '<audio>' tag is written then audio controls will not appear on the web page.
8and for showing audio controller we need to write controls attribute in audion tag '<audio controls>'.
9
10Example
11<audio controls>
12 <source src="horse.mp3" type="audio/mpeg">
13</audio>