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

Tell us what’s happening:

Having issue with my source element within the video element

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>Watch my Video</h1>
<section>
  <h2>video title</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="video/mp4"/>
  </video>
  </section>
  <section>
    <h2>title of the song to play</h2>
    <audio 
    controls 
    loop 
    src="https://cdn.freecodecamp.org/curriculum/js-music-player/sailing-away.mp3"
    </section>
</body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15

Challenge Information:

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

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-html-audio-and-video-player/68de40f53fcaf106f51cc20f.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hi @HawKir17

You need an element, not an attribute.

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

The audio element is missing a closing angular bracket.

Happy coding