Linking Sounds to Elements

Click the first word or the second word to play different sounds. You can also click the blue circle.

(Note: This example needs placeholder sound files named `sound1.mp3` and `sound2.wav` in a `sounds/` directory relative to this HTML file, or it will simulate the sound.)

AudioContext not initialized. Click an interactive element.

Loading sounds...

« Back to Guide