Build an HTML Video Player - Step 8

Tell us what’s happening:

I genuinely don’t understand why it’s not letting me go ahead. There’s no url to add to the “src” too. Moreover, even enveloping it like is not working. Please help T^T

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"

<!-- User Editable Region -->

source src=""

<!-- User Editable Region -->

  </video>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36

Challenge Information:

Build an HTML Video Player - Step 8

hello and welcome to fcc forum :slight_smile:

  • syntax error, checkout example given for a ‘source’ element, simply add one and then next step you will see what comes next

happy coding :slight_smile:

Welcome to the forum @caw_fee !

<video controls width="250">
  <source src="src-url-goes-here" type="video-type-goes-here" />
</video>

This is the example from the step description.
As you see there, <source> it is a separate element, not an attribute inside the <video> element.

Your thinking is normally right, because <img> or <a> also have the source inside the elements opening tag.

In this case with video, you have to use the <source> element, because it lets you use different video types within the same <video> element.

You will see it in the very same workshop as you progress forward.
When I did it, it made me no sense too at first.