Build an HTML Audio and Video Player - Build an HTML Audio and Video Player

Tell us what’s happening:

im having issues with test 9-12. i cant figure out what is wrong with the code. it looks right to me. Any suggestions?

Your code so far

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>HTML Audio and Video Lab</title>
</head>
<body>
<h1>What is the Mapping Method</h1>
<section>
  <h2>Map Method</h2>
   <video
   src="https://cdn.freecodecamp.org/curriculum/labs/what-is-the-map-method-and-how-does-it-work.mp4" type="mp4"
   controls
   width="640">
   </video>
  </section>
  <section>
    <h2>We are going to make it</h2>
    <audio
    src="https://cdn.freecodecamp.org/curriculum/js-music-player/we-are-going-to-make-it.mp3" type="mp3"
    controls
    loop>
    </audio>
    </section>
</body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0

Challenge Information:

Build an HTML Audio and Video Player - Build an HTML Audio and Video Player

It looks like all of these tests are related to Test #9:

Inside the video element, you should have a source element.

Think about what an HTML element looks like.

In contrast, what is an attribute of an element?

Which is it you have in your video element…a source element, a source attribute…or neither? :slight_smile:

i went back and looked at the previous lesson on adding video and audio and to my knowledge it should be right. i have the src and they type as well as the width and controls. ive been trying to figure this out for 4 hours

Have another look at User Story #5.

check again that lesson, it also talks about the source element which you have not used at all here