Was bug there ?Audio element has a closing tag

Applied Accessibility: Improve Accessibility of Audio Content with the audio Element

<body>
  <header>
    <h1>Real Coding Ninjas</h1>
  </header>
  <main>
    <p>A sound clip of Zersiax's screen reader in action.</p>
    
    <audio id="test" controls>
       <source src="https://s3.amazonaws.com/freecodecamp/screen-reader.mp3" type="audio/mpeg" />    
    </audio>
    
  </main>
</body>

but when I run the tests:there has a mistake

// running test
Make sure your audio element has a closing tag.
// tests completed
1 Like

It’s a bug in the exercise. It won’t pass if the <audio> element has attributes other than controls.

1 Like

The lesson does not tell you to add an id or other attributes. The test works by checking whether the tag matches exactly what is expected.

2 Likes