CHOOSE ANY STEP
FREECODECAMP / HTML / STEP 2 OF 8
freeCodeCamp: Build a Video Display Using iframe, Step 2
Create an empty inline frame
Written guidance is free. Step videos are a member benefit.
Below the heading, add an opening iframe tag and a matching closing tag. Leave the space between them empty. Keep both tags inside body, just after the heading.
ORIGINAL WALKTHROUGH ·
Watch with Rob.
Watch the explanation, then apply the change and run the official checks on freeCodeCamp.
You are signed in, but video access needs attention. Check your account access. Your saved work is kept.
Video walkthroughs are included with an active Code Zone membership. The written lesson and practice are free.
Your goals for this step
- Apply the requirements for “Create an empty inline frame” while keeping the earlier page structure.
- Explain iframe and the role it plays in this change.
- Compare the expected preview with your work before running the official checks.
THE TASK
What step 2 asks you to do
- You should have an
iframeelement. - Your
iframeelement should be empty.
Based on the official freeCodeCamp step 2 instructions (opens in a new tab).
Why this works
Find the level one heading inside body. We will place an inline frame below it. An inline frame displays another document within the current page.
What you should see in the preview
Over in the preview, the heading stays in place and an empty rectangular frame appears below it. There is no video yet because we have not supplied a source address. Unlike an image element, an inline frame needs its closing tag. Leave its contents empty for this step.
Illustrative browser result. External embeds, navigation and form submission are disabled here. Open freeCodeCamp to test the real behavior. Drag the lower-right corner to make this preview taller.
Terms to know
- iframe: Inline frame
- Embeds another page inside the current document. A video embed URL loads the provider’s player page.
If your check does not pass
- You should have an
iframeelement. - Your
iframeelement should be empty.
Use the preview to inspect the structure, then run the checks on freeCodeCamp. Watching here does not submit code or mark an official step complete.
Know where to find it
You do not have to memorize every element or CSS property. Keep useful references nearby:
- W3Schools: iframe (opens in a new tab)
Compare the syntax and a focused example.
- MDN: HTML element reference (opens in a new tab)
Look up the definition, syntax and supported behavior.
What you have accomplished
The change for “Create an empty inline frame” is ready to try. Return to freeCodeCamp, compare your result with the requirements, and run its checks. Your official progress stays there.
Independent guidance from The Code Zone, not affiliated with or endorsed by freeCodeCamp. Complete official work and certification requirements on freeCodeCamp. Curriculum checked November 15, 2026. Curriculum source (opens in a new tab).