wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Web Development

Total questions: 29

Worksheet time: 16mins

Name
Class
Date
1.

Which word is best defined as "a language used to describe how HTML elements should be styled"?

a)

HTML

b)

CSS

c)

Heading

d)

Element

2.

Which of these tasks are most appropriate for CSS?

a)

Change the background color

b)

Add an image

c)

Add a link

d)

Change the font size

e)

Add text

3.

Which are you more likely to find in a CSS file?

a)

.clouds { height: 50px; }

b)

c)

body { background: mistyrose; }

d)

Haikus

e)

a rainbow

4.

Given the following website, what would you add to the CSS file so the images of clouds and rainbows have a height of 50 px?

a)

img.cloud, img.rainbow { height: 50px; }

b)

img.cloud, img.rainbow { width: 50px; }

c)

img.cloud, img.rainbow { size: 50px; }

d)

img.cloud, img.rainbow { max-height: 50px; }

5.

Given the following HTML code: sushi plate clouds a rainbow Which CSS code would set the height of the clouds and rainbow images to 50px?

a)

img-small { height: 50px; }

b)

.weather { height: 50px; }

c)

img { height: 50px; }

d)

clouds { height: 50px; } rainbows { height: 50px; }

e)

.clouds { height: 50px; } .rainbows { height: 50px; }

6.

Given this webpage (showing 'My Pets' with 'Dog', 'Lula', and 'Slowpoke' listed), which of the following is the correct HTML?

a)

b)

c)

d)

7.

Which of the following HTML code snippets is the most semantically correct way to structure the information about 'My Pets', 'Dog', 'Lula', and 'Slowpoke'?

a)

My Pets

Dog

Lula

Slowpoke

b)

My Pets Dog Lula Slowpoke

c)

My Pets

Dog

Lula

Slowpoke

8.

Which of the following HTML code snippets is correct or matches the required format?

a)

My Pets Dog

Lula

Slowpoke

b)

My Pets Dog Lula Slowpoke

9.

Debug the following image tag a rainbow

a)

There should not be an alt attribute

b)

img should be image

c)

Add a starting quotation mark to the name of the rainbow.jpg file

d)

Add a closing tag

10.

Which of the following is an example of your digital footprint?

a)

Your birthday

b)

Your address

c)

Your phone number

d)

Your name

e)

All of the above

11.

Which of the following elements most likely increase a website's trustworthiness?

a)

Posted anonymously

b)

Images are high quality

12.

When flex-wrap is set to wrap and flex-direction is column, how will flex items behave in a container that exceeds its height?

a)

Items will wrap from top to bottom

b)

Items will overflow the container without wrapping

c)

Items will align vertically until reaching the container's maximum width

d)

Items will wrap onto a new column beside the first

13.

What Flex properties have been applied to create the layout pictured below?

a)

flex-direction: row; justify-content: center; align-items: center;

b)

flex-direction: column; justify-content: flex-start; align-items: stretch;

c)

flex-direction: row; justify-content: space-between; align-items: flex-end;

d)

flex-direction: column; justify-content: center; align-items: flex-start;

14.

Which CSS properties would you use to center items vertically and distribute them evenly along the main axis in a flex container?

a)

justify-content: space-between; and align-items: center;

b)

justify-content: space-around; and align-items: flex-start;

c)

align-items: space-evenly; and justify-content: center;

d)

justify-content: center; and align-items: center;

15.

In a flex container with align-items: flex-start, one child item has align-self: flex-end. What impact does align-self have on this item?

a)

It has no effect since align-items is set to flex-start.

b)

It overrides align-items, aligning the item at the end of the container.

c)

It makes the item align in the center of the container.

d)

It causes the item to grow to fill the container.

16.

The purpose of copyright is:

a)

to protect the rights of creators over their original works

b)

to allow anyone to copy works freely

c)

to prevent the creation of new works

d)

to limit access to information

17.

Copyright is intended to protect the rights of ________.

a)

content creators

b)

consumers

c)

publishers

d)

advertisers

18.

What is one of the rights that copyright provides to content creators?

a)

The right to ignore their work

b)

The right to be recognized as the creator

c)

The right to copy others' work

d)

The right to hide their work

19.

Where in the HTML document is the correct location to insert code to link to your external CSS? 

a)

In the <head> section

b)

In the <body> section

c)

At the very end of the document

d)

At the very beginning of the document

20.

</html>

a)

Found after </h1>

b)

Found after </style>

c)

Found after </body>

d)

Found at bottom of written code

21.

The (a)   section is not for the user to see.

22.

Freya and Leo are helping Benjamin design a website for a local community center. What is the main purpose of web accessibility?

a)

To make websites look more attractive

b)

To ensure websites are usable by people with disabilities

c)

To increase website loading speed

d)

To improve website security

23.

Priya and Oscar are working on a fun project to make their website accessible to everyone. Which of the following is a cool web accessibility feature they should include?

a)

High-resolution images

b)

Alt text for images

c)

Flashy animations

d)

Pop-up advertisements

24.

Given the website image, what would you add to the CSS file so the images of clouds and rainbows have a height of 50 px?

a)

b)

c)

d)

25.

</html>

a)

Found after </h1>

b)

Found after </style>

c)

Found after </body>

d)

Found at bottom of written code

26.

The (a)   section is not for the user to see.

27.

WAI guidelines are used to identify the target of a link and not to use color alone to identify links

a)

TRUE

b)

FALSE

28.

Given the website image, what would you add to the CSS file so the images of clouds and rainbows have a height of 50 px?

a)

b)

c)

d)

e)

29.

Where in the HTML document is the correct location to insert code to link to your external CSS? 

a)

In the <head> section

b)

In the <body> section

c)

At the very end of the document

d)

At the very beginning of the document