Command Palette

Search for a command to run...

Hectal
Phase 5: Media and Embeds
HTML · Exercise 5 of 6 PreviousNext
Intermediate

Lock down an embedded widget

This page embeds a poll widget from another team in an iframe. It needs scripts to work, but must not be able to submit forms, open popups or act as your page's origin.

Give the iframe: a descriptive title; a sandbox that allows only scripts; referrerpolicy that sends no referrer; lazy loading; and a size of 400 × 200 pixels.

What Check tests

  1. The iframe has a descriptive title
  2. The sandbox allows scripts and nothing else
  3. No referrer is sent
  4. The iframe lazy-loads
  5. The iframe is 400 × 200 pixels

Stuck? One hint at a time

The solution unlocks after your first Check. Try first: that is where the learning happens.

Runs in your browser. Your code is saved here.

Your page

Press Run to see the page.

Console

Nothing logged yet.