Tell us what’s happening:
test 12 is giving me issues. I’ve gone through the forum and have tried different versions of the code but nothing works. I have the source as the video link and type matching the video format of mp4. I’ve even tried without the video link as the source. everything works fine in the preview. So I’m not sure what’s wrong with the code.
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>Lab:Audio and Video</h1>
<section>
<h2>What is and how does the map method work</h2>
<video
src="https://cdn.freecodecamp.org/curriculum/labs/what-is-the-map-method-and-how-does-it-work.mp4"
controls
width=640
<video controls>
<source src="https://cdn.freecodecamp.org/curriculum/labs/what-is-the-map-method-and-how-does-it-work.mp4" type="video.mp4">
</source>
</video>
</section>
<section>
<h2>Sailing Away</h2>
<audio src="https://cdn.freecodecamp.org/curriculum/js-music-player/sailing-away.mp3"
controls
loop>
</audio>
</section>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Challenge Information:
Build an HTML Audio and Video Player - Build an HTML Audio and Video Player