thecodezone.
The Code Zone
Short steps, at your pace · Free lessons and practice · Member video walkthroughs
Save your next small win.

Checking your account…

Workshop overview

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.

LEARN WITH THE CODE ZONE

Unlock this video walkthrough

Written lessons and coding practice are free. Video walkthroughs are included with a paid Code Zone membership or an active free trial.

Have a Code Zone website account? Use your learning account’s email to get a six-digit sign-in code, or use your existing website password.

Need a website account? Paid Skool members and active trial members can use the email from their membership questions to request a sign-in code. No invite link or Skool password needed.

Close this window to keep practicing. After signing in, you’ll return to this lesson.

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 iframe element.
  • Your iframe element 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 iframe element.
  • Your iframe element 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:

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).