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 5 OF 8

freeCodeCamp: Build a Video Display Using iframe, Step 5

Allow the first player features

Written guidance is free. Step videos are a member benefit.

Add an allow attribute. Inside its quotation marks, include accelerometer, autoplay, and clipboard write, using the exact hyphenated spelling on screen. Separate the three feature names with semicolons. These are feature names, not three separate HTML attributes.

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 “Allow the first player features” while keeping the earlier page structure.
  • Explain autoplay and the role it plays in this change.
  • Explain allow and the role it plays in this change.
  • Compare the expected preview with your work before running the official checks.

THE TASK

What step 5 asks you to do

  • Your iframe element should have an allow attribute set to accelerometer.
  • The allow attribute of your iframe element should have autoplay as one of its values.
  • The allow attribute of your iframe element should have clipboard-write as one of its values.

Based on the official freeCodeCamp step 5 instructions (opens in a new tab).

Why this works

Find the opening iframe tag and its source address. The allow attribute declares which browser features the embedded page may use. It does not force those features to run.

What you should see in the preview

The player should look the same in the preview. Accelerometer relates to motion sensor access. Autoplay permits automatic playback subject to browser rules; it does not start this video by itself. Clipboard write relates to writing to the clipboard. The workshop starter may show spaces. Use a semicolon between neighboring feature directives.

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

autoplay: Autoplay attribute
Requests automatic playback. Browser policies can still prevent autoplay, especially with sound.
allow: Permissions policy
Lists features an embedded page may use, subject to browser and parent-page policy. Separate directives with semicolons.

If your check does not pass

  • Your iframe element should have an allow attribute set to accelerometer.
  • The allow attribute of your iframe element should have autoplay as one of its values.
  • The allow attribute of your iframe element should have clipboard-write as one of its values.

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 “Allow the first player features” 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).