Landing Page issues

Working on my Landing Page and have 3 errors.

  1. with the nav-link function which is apparently not linking within the page.

  2. Something is up with the id=video and I’m not sure what’s drawing the error out there.

  3. The #submit element is also drawing an error. Not sure if I’m missing an attribute that would make it true. Do I need something besides “required”?

Besides this, I have a personal query about how to prevent autoplay on my page. I have autoplay and autostart set to “false” and also have set it to “0” but neither seems to have worked.

Any help on these items would be greatly appreciated.


Post your project link.

Here it is


  1. You don’t need target attribute (opens in new tab) on a element. Remove all the target attributes from there.
  2. Try using either Video or iframe tag.
  3. you missed action attribute on form tag & forgot to close form tag.

Thanks so much for your help. I’ve removed the target attributes, but I’m still getting an error on linking within the same page:

5. When I click a .nav-link button in the nav element, I am taken to the corresponding section of the landing page.'

and my embedded video still registers as an error:

6. I can watch an embedded product video with id=“video”.

The video I have changed from iframe to video and I still have the same issue which is this:

TypeError: Cannot read property ‘hasAttribute’ of undefined

Can anybody point out where I’m going wrong?

Much obliged,

I’m having problems with the video unit-test as well.
If anyone is helping, pls take a look at this pen:

I think probably a github issue needs to be opened.

1 Like

You didn’t use this element the right way:

<video width="320" height="240" autoplay>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
1 Like

hi @RomanB ! Thanks for the assist!

Quick question, what did you mean by “Your browser does not support the video tag.” ?

hi @bananahair , thanks to @RomanB it seems the solution is:

<video id="video" controls>
<source  src="link" type="video/mp4" mute>

Make sure your video section looks similar to the above.

1 Like

I’m sorry, I meant to insert this section on how to use element:

<video width="320" height="240" autoplay>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">

Your browser does not support the video tag.```

By the way, there is a recommendation to always include width and height.
1 Like

I’ve edited your post for readability. When you enter a code block into the forum, precede it with a line of three backticks and follow it with a line of three backticks to make easier to read. See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.



ah that’s cool! I need to look up this recommendation, as I would have thought it best to let the video take up the available space.

This seems weird… According to MDN the way she used the tag should be fine. This method works, and as far as I can tell video tag has been well supported for a while now.

I think FCC needs to specify in test spec that they would like to have the source defined within a source tag, or they should rewrite to allow for src attribute.

1 Like

I opened an issue for this