Build a Video Display Using iframe - Step 5

Tell us what’s happening:

Please, look at my code and will you tell me is it correct or not?

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>Display Videos in an iframe</title>
  </head>
  <body>
    <h1>iframe Video Display</h1>

<!-- User Editable Region -->

    <iframe
  width="560"
  height="315"
  src="https://www.youtube.com/embed/I0_951_MPE0"
  allow="accelerometer autoplay clipboard-write"
></iframe>

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

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

Challenge Information:

Build a Video Display Using iframe - Step 5

Hi Dennis-code153,

My grandmother who is learning to code here, too, suggested to me to use this to check for errors.

I do not normally post on here. But, thought this may help.

As far as I see, your code looks correct for this assignment.

Learn together as coders.

2 Likes

Your solution works from my end. Please try one of the following steps to move forward.

Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.

3 Likes

Thank you so much! Your advice has been a lifesaver and I’ve managed to resolve the issue.
Thanks a bunch! Your tips totally saved me and got things working again.

2 Likes