I can't seem to pass this test. Please help


This is my code for the drum machine project

I can’t seem to pass

Within each .drum-pad, there should be an HTML5

Hello there,

Whilst is might be considered best-practice the method you have, the point of using source elements is only apparent when there is more than one option for the browser to choose from. So, in this case, they are unnecessary.

The error does specify:

<audio> element which has a src attribute

You have audio elements, but no src attributes. Remember: an attribute is the thing that goes within the element opening tag. Eg:

<div id="someId"></div>

In the above, the div element has an id attribute.

Hope this clarifies.

1 Like

THANK YOU!!!
Should’ve been more keener on the documentation