@4pip/

Sound in html

HTML, CSS, JS

sound in html

fork
loading
Files
  • index.html
  • bensound-funkyelement.mp3
  • Cheery Monday.mp3
  • Crossing the Chasm.mp3
  • Division.mp3
  • Funk Game Loop.mp3
  • script.js
  • style.css
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<style>
  body{font-size:14px;
    font-family:Arial;
    background-color:teal;
    margin:40px}
</style>

  <h1>Dit is Funky Game Loop</h1>
  <body>
    <!-- <audio autoplay src="Division.mp3"> deze speelt automatisch af-->
    <audio controls src="Funk Game Loop.mp3">
    </audio>
  </body>

<h1>Dit is Divsion</h1>
  <body>
    <audio controls src="Division.mp3">
    </audio>
  </body>

<h1>Dit is CheeryMonday</h1>
  <body>
    <audio controls src="Cheery Monday.mp3">
    </audio>
  </body>

<h1>Crossing the Shasm</h1>
  <body>
    <audio controls src="Crossing the Chasm.mp3">
    </audio>
  </body>

<h1>Bensound Funky</h1>
  <body>
    <audio controls src="bensound-funkyelement.mp3">
    </audio>
  </body>

</html>

result
console