Back to Freecodecamp

Step 2

curriculum/challenges/english/blocks/workshop-build-a-video-display-using-iframe/68ba9c4f1688914d72876093.md

latest677 B
Original Source

--description--

Now, create an iframe element. Don't put anything in it yet.

--hints--

You should have an iframe element.

js
assert.exists(document.querySelector('iframe'))

Your iframe element should be empty.

js
assert.equal(document.querySelector('iframe')?.innerHTML.trim(), '')

--seed--

--seed-contents--

html
<!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>
--fcc-editable-region--
    
--fcc-editable-region--
  </body>
</html>