wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

.NET WW1 Q2

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which attribute specifies the URL of the content inside an <iframe>?

a)

href

b)

src

c)

link

d)

path

2.

A student embeds a YouTube video using <iframe> but wants to allow it to play in fullscreen mode.

Which attribute should they include?

a)

fullscreen="yes"

b)

allowfullscreen

c)

display:fullscreen;

d)

maxscreen

3.

What happens if you set only the width attribute of an <iframe> and leave height unset?

a)

The iframe disappears

b)

The iframe becomes distorted

c)

The height adjusts automatically to keep proportions

d)

An error message appears

4.

Which tag is used to group content and apply styles such as background color and padding?

a)

<group>

b)

<div>

c)

<span>

d)

<section>

5.

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?

a)

<iframe>

b)

<div>

c)

<body>

d)

<form>

6.

You want to embed Google Maps showing your school location into your webpage. Which HTML element is most appropriate?

a)

<frame>

b)

<div>

c)

<iframe>

d)

<map>

7.

A <div> is styled with margin:20px; padding:10px; border:2px solid black;. Which statement is correct?

a)

Margin controls the space inside the border

b)

Padding controls the space outside the border

c)

Margin adds space outside the border, padding adds space inside

d)

Both margin and padding are the same

8.

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?

a)

<iframe>

b)

<div>

c)

<nav>

d)

<table>

9.

A student creates this code: What is the purpose of the

here?

a)

To embed an external page

b)

To create a styled container for profile content

c)

To center the page automatically

d)

To display an image

10.

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?

a)

<div> for the banner, <iframe> for the video, <div> for student info

b)

<iframe> for the banner, <div> for the video, <iframe> for student info

c)

<div> for everything

d)

<iframe> only