Tell us what’s happening:
I’m building the
Drum Machine project. I finished styling the project.
And I want to pass this test:
- Within each .drum-pad, there should be an HTML5
<audio>element which has a src attribute pointing to an audio clip, a class name of “clip”, and an id corresponding to the inner text of its parent .drum-pad (e.g. id=“Q”, id=“W”, id=“E” etc.).
So I don’t have any idea how to include the
audio element and then play the sound.
Link to my project:
Your browser information:
User Agent is:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0
Challenge: Build a Drum Machine
Link to the challenge: