Tell us what’s happening:
I don’t understand why I can’t move forward. I’ve added the type=“video/mp4” to the source element, and all it keeps repeating is that I have not added it to the source element. I have checked it at least ten times to make sure it’s correct, as well as looked around online.
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>Working with the HTML Video Element</title>
</head>
<body>
<h1>Working with the HTML Video Element</h1>
<video
width="640"
loop
controls
muted
poster="https://cdn.freecodecamp.org/curriculum/labs/past-event2.jpg"
<source
<!-- User Editable Region -->
src="https://cdn.freecodecamp.org/curriculum/labs/what-is-the-map-method-and-how-does-it-work.mp4"
type="video/mp4">
<!-- User Editable Region -->
</video>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:154.0) Gecko/20100101 Firefox/154.0
Challenge Information:
Build an HTML Video Player - Step 10