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

Tell us what’s happening:

When I run the program it runs successfully but does not pass.

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>A/V Homework</h1>
  <section
    <h2>The V Part</h2>
    <video
      controls
      width="640"
        <source
          src="https://cdn.freecodecamp.org/curriculum/labs/What is the map method and how does it work.mp4"
          type="mp4">
        </source>
      </video>
  </section>
  <section
    <h2>The A Part</h2>
    <audio
      controls
      loop
      src="https://cdn.freecodecamp.org/curriculum/js-music-player/sailing-away.mp3"
    </audio>
  </section>
</body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Mobile/15E148 Safari/604.1

Challenge Information:

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

Welcome back to the forum @Truk

Make sure every tag is properly closed.

Review the type attribute value syntax.

Happy coding

Thank you! I got it.

1 Like