CHOOSE ANY STEP
FREECODECAMP / HTML / STEP 6 OF 8
freeCodeCamp: Build a Video Display Using iframe, Step 6
Extend the permission list
Written guidance is free. Step videos are a member benefit.
Inside the same quoted value, add encrypted media, gyroscope, and web share, using the exact hyphenated spelling shown. Separate the added feature names with semicolons, and preserve the three names already present.
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 “Extend the permission list” 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 6 asks you to do
- The
allowattribute of youriframeelement should haveencrypted-mediaas one of its values. - The
allowattribute of youriframeelement should havegyroscopeas one of its values. - The
allowattribute of youriframeelement should haveweb-shareas one of its values.
Based on the official freeCodeCamp step 6 instructions (opens in a new tab).
Why this works
This is step 6 in freeCodeCamp’s video display workshop. Let’s make one change and check the result. Find the allow attribute on the opening iframe tag. Keep its existing feature names. We are extending one permission list rather than creating a second allow attribute.
What you should see in the preview
The preview should still show the same player. Encrypted media permits the relevant protected media feature. Gyroscope relates to device orientation sensing, and web share permits the native sharing feature. Browser and device support still apply. Adding these names does not encrypt this particular video or open a sharing dialog by itself.
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
- The
allowattribute of youriframeelement should haveencrypted-mediaas one of its values. - The
allowattribute of youriframeelement should havegyroscopeas one of its values. - The
allowattribute of youriframeelement should haveweb-shareas 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:
- W3Schools: video (opens in a new tab)
Compare the syntax and a focused example.
- 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 “Extend the permission list” 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).