Landing Page bring this error: #video is not defined

I am trying to work on my landing page project but i am missing on one point to make the 16/16. I am scoring 15/16 because i am getting an error message of my video not being defined. Can someone out there look at my code and tell me what is going on.



We need to see your codepen to see the issue.

Also, you can’t have duplicate ids.
You wrote div2 twice.

I have pasted here/below the whole of my pencode for easy follow up.

<script src=""></script>
<header id="header">
  <nav class="navbar" id="nav-bar">
    <a class="nav-link"href="#div3">DIV 3</a>
    <a class="nav-link"href="#div2">DIV 2</a>
    <a class="nav-link"href="#div1">DIV 1</a>
    <a class="nav-link"id="img-container" href="#div3">
     <img id="header-img" src="" width"40" height="40"/></a>
 </main id="main">                         
   <div id="div1"><iframe width="420" height="315" src=""></iframe></div><div id="div2"></div>
<form id="form" action="">
  <input id="email" type="email" required name="email" placeholder="Enter Email Address"/>
  <input type="submit" value="submit" id="submit"/>
        <div id="div3">div3</div>

Two things.

This is an error.

This is the full error message.
I can watch an embedded product video with id="video".
#video is not defined : expected null to not equal null

It is telling you it can’t find the id.

After looking at your code, neither can I.
Always read the full error messages.

Hope that helps!

Thanks jwilkins. Let me try to check it out and see if i can score that 1 remaining mark.

Thank you very much for your help jwilkins. I passed it.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.