Iframes — Quiz

Answer all 5 questions, then submit. You need 60% to pass. Log in to save progress.

Question 1
What does an <iframe> do?
A Creates an image gallery
B Embeds another web page inside the current one
C Defines a form
D Adds a sidebar
Question 2
Why must you add a title to an iframe?
A To show a heading above it
B So screen-reader users know what the frame contains
C To set its width
D It is purely decorative
Question 3
What does loading="lazy" do on an iframe?
A Blurs the frame
B Defers loading until the user scrolls near it
C Disables the frame
D Makes it full screen
Question 4
What is the sandbox attribute for?
A Adding a play area for games
B Restricting what the embedded page is allowed to do
C Changing the frame's colour
D Loading the frame faster
Question 5
Which sources should you embed in an iframe?
A Any source you find
B Only sources you trust, ideally over https
C Only images
D Only your own pages