Tell us what’s happening:
For some reason, there are some test cases failing for this lab saying that I didn’t include the controls or loop attributes. Furthermore, it’s saying I didn’t add a second section element and an h2 element to add a name for the audio that is playing. I am not sure as to why.
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>freeCodeCamp Exercise</h1>
<section>
<h2>Video Sample</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>
</secton>
<section>
<h2>Sailing Away Sample</h2>
<audio src="https://cdn.freecodecamp.org/curriculum/js-music-player/sailing-away.mp3" controls loop></audio>
</section>
</body>
</html>
Challenge Information:
Build an HTML Audio and Video Player - Build an HTML Audio and Video Player