NEW
Font size
Worksheets.NET WW1 Q2
Total questions: 10
Worksheet time: 5mins
Which attribute specifies the URL of the content inside an <iframe>?
href
src
link
path
A student embeds a YouTube video using <iframe> but wants to allow it to play in fullscreen mode.
Which attribute should they include?
fullscreen="yes"
allowfullscreen
display:fullscreen;
maxscreen
What happens if you set only the width attribute of an <iframe> and leave height unset?
The iframe disappears
The iframe becomes distorted
The height adjusts automatically to keep proportions
An error message appears
Which tag is used to group content and apply styles such as background color and padding?
<group>
<div>
<span>
<section>
A developer wants to organize a student profile page into a header, body, and footer. Which HTML element should they use for grouping each section?
<iframe>
<div>
<body>
<form>
You want to embed Google Maps showing your school location into your webpage. Which HTML element is most appropriate?
<frame>
<div>
<iframe>
<map>
A <div> is styled with margin:20px; padding:10px; border:2px solid black;. Which statement is correct?
Margin controls the space inside the border
Padding controls the space outside the border
Margin adds space outside the border, padding adds space inside
Both margin and padding are the same
A teacher asks students to create a webpage with a navigation bar that remains fixed while other content changes inside the same window. Which element is best for loading the changing content?
<iframe>
<div>
<nav>
<table>
A student creates this code: What is the purpose of the
here?
To embed an external page
To create a styled container for profile content
To center the page automatically
To display an image
A school website wants to show an announcement banner at the top (colored background), embed a video message from the principal, and display student information in a card layout. Which is the best combination of elements?
<div> for the banner, <iframe> for the video, <div> for student info
<iframe> for the banner, <div> for the video, <iframe> for student info
<div> for everything
<iframe> only
