Drum Machine Project help

I am now passing all but one test, but I’m not sure why.

Here’s a link to my pen: https://codepen.io/tristansmith8276/pen/LYEjRdd

Congrats on the project! You are extremely close

When I run the tests, the failed one is:

4. 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.).

It is the last line of that test that you are failing:

Error: Each <audio> element should have an id equal to its parent .drum-pad's inner-text : expected 'Q' to equal ''

You currently have:

<button>
   <AudioPlayer>

where <AudioPlayer> =

<div>
   <audio>

what is the parent of each <audio> ?

Congrats again!

1 Like

Thank you so much! I was able to get it to pass now :slight_smile: