wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML and CSS

Total questions: 36

Worksheet time: 18mins

Name
Class
Date
1.

What is HTML?

a)

HyperText Markup Language

b)

HighTower Makeup Language

c)

Plain Text on Documents

d)

Expensive Types of Candy

2.

What is HTML?

a)

HyperText Markup Language

b)

HighTower Makeup Language

c)

Plain Text on Documents

d)

Expensive Types of Candy

3.

What is the purpose of HTML?

a)

To control space and time

b)

To create webpages

c)

To confuse and infuriate users

d)

To provide Webpage security

4.

Select the tags below:

a)

<body>

b)

/body

c)

<p>

d)

<img>

5.

Which tag is used to display/contain all things shown on the webpage?

a)

<body>

b)

/body

c)

<p>

d)

<img>

6.

Which tag is used to display images on webpages?

a)

<body>

b)

/body

c)

<p>

d)

<img>

7.

Which answer is not a tag?

a)

<body>

b)

/body

c)

<p>

d)

<img>

8.

Which tag is an end tag?

a)

<body>

b)

</body>

c)

<p>

d)

<img>

9.

Which tag is used to display a heading such as "Welcome to my Webpage?"

a)

<body>

b)

<img src = >

c)

<head>

d)

<h1>

10.

Which tags are used to create a paragraph?

a)

<body></body>

b)

<img src = ></img>

c)

<p></p>

d)

<h1></h1>

11.

Identify the tags that contain attributes. Select all that apply.

a)

<body bgcolor = >

b)

<img src = >

c)

<head>

d)

<h1 align =>

12.

What is CSS?

a)

Cats Seeking Shelter

b)

Cascading Style Sheets

c)

Campers Sleeping Silently

d)

Code Syncing Selectors

13.

What does CSS do to webpages?

a)

It adds more HTML to the website automatically

b)

It makes coding HTML harder and is not worth it

c)

It makes the page look 'Hot'! Adding pleasing visual features to websites

d)

Removes all interesting elements from the webpage

14.

What language is used to define the structure of a webpage?

a)

HTML

b)

CSS

c)

JavaScript

d)

French

15.

What language is used to add style to a webpage?

a)

HTML

b)

CSS

c)

JavaScript

d)

French

16.

What language is used to add style to a webpage?

a)

HTML

b)

CSS

c)

JavaScript

d)

French

17.

What is HTML generally used for?

a)

Android apps

b)

User Interface Operations

c)

Webpage aesthetics

d)

The skeleton of webpages

18.

Which is correct CSS syntax?

a)

{body; colour = black;}

b)

body: colour = black

c)

body {

colour : black;}

d)

{body colour is black}

19.

What unit of measurement does CSS use for size?

a)

px

b)

em

c)

%

d)

All work

20.

Select the tags below:

a)

<body>

b)

/body

c)

<p>

d)

img

21.

Which tag is used to display/contain all things shown on the webpage?

a)

/body

b)

<p>

c)

<body>

d)

<img>

22.

Which tag is an end tag?

a)

<body>

b)

</body>

c)

<p>

d)

<img>

23.

Which tags are used to create a paragraph

a)

<body> </body>

b)

<img src => </img>

c)

<p> </p>

d)

<h1> </h1>

24.

What language is used to define the structure of a webpage?

a)

HTML

b)

JavaScript

c)

CSS

d)

French

25.

What language is used to add style to a webpage?

a)

HTML

b)

JavaScript

c)

CSS

d)

French

26.

What tag do you used to create a numbered list?

a)

<list>

b)

<ol>

c)

<li>

d)

<ul>

27.

Which sets the colour of words in a paragraph

a)

h1 {

colour: pink }

b)

img {

colour: pink }

c)

body {

colour: pink }

d)

p {

colour: pink }

28.

Select the rule to make all the text in your web page blue and centered.

a)

p {

colour: blue; }

b)

body {

text-align: left;

colour: blue; }

c)

p {

text-align: center

colour: blue; }

d)

body {

text-align: center

colour: blue; }

29.

What symbols go around the properties for each CSS selector?

a)

< >

b)

[ ]

c)

{ }

d)

( )

30.

What is the selector for a link?

a)

a { }

b)

link { }

c)

href { }

d)

a href { }

31.

Annie wants the name of her product to be the main heading at the top of her webpage. Which tage defines the main heading in a web documnets?

a)

<h3>Product<h3>

b)

<h5>Product<h5>

c)

<h1>Product<h1>

d)

<h6>Product<h6>

32.

Name an element which does not have a closing tage.

a)

<img>

b)

<head>

c)

<body>

d)

<p>

33.

What symbol should you use to target a class names in css?

a)

#

b)

()

c)

.

d)

class

34.

What symbol should you use to target an id in css?

a)

.

b)

+

c)

id

d)

#

35.

Kareb wants to begin a new line within a paragraph of text on a webpage. Which code should she use?

a)

<li>

b)

<h1>

c)

<hr>

d)

<br>

36.

What is the correct code for a paragraph in css?

a)

P

b)

<p> </p>

c)

.p

d)

p {

}