Improve Accessibility of Audio Content with the audio Element.,

Improve Accessibility of Audio Content with the audio Element.,
0

#1

Tell us what’s happening:

I have completed all the other check marks but this one, Your code should include a type attribute on the source tag with a value of audio/mpeg.
Please explain what i am missing please.

Your code so far


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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-accessibility/improve-accessibility-of-audio-content-with-the-audio-element


#2

As you can see from the example, there’s a type attribute on the source tag.

<audio id="meowClip" controls>
  <source src="audio/meow.mp3" type="audio/mpeg" />
  <source src="audio/meow.ogg" type="audio/ogg" />
</audio>

Also, you forgot the quotes in the src attribute.