wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML / CSS

Total questions: 20

Worksheet time: 16mins

Name
Class
Date
1.

What is HTML generally used for?

a)

Android apps

b)

User Interface Operations

c)

Webpage aesthetics

d)

The skeleton of webpages

2.

Which is correct CSS syntax?

a)

{body; colour = black;}

b)

body: colour = black

c)

body {

colour : black;}

d)

{body colour is black}

3.

What unit of measurement does CSS use for size?

a)

px

b)

em

c)

%

d)

All work

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)

<p>

c)

<body>

d)

<img>

6.

Which tag is an end tag?

a)

<body>

b)

</body>

c)

<p>

d)

<img>

7.

Which tags are used to create a paragraph

a)

<body> </body>

b)

<img src => </img>

c)

<p> </p>

d)

<h1> </h1>

8.

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

a)

HTML

b)

JavaScript

c)

CSS

d)

French

9.

What language is used to add style to a webpage?

a)

HTML

b)

JavaScript

c)

CSS

d)

French

10.

What tag do you used to create a numbered list?

a)

<list>

b)

<ol>

c)

<li>

d)

<ul>

11.

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 }

12.

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; }

13.

What symbols go around the properties for each CSS selector?

a)

< >

b)

[ ]

c)

{ }

d)

( )

14.

What is the selector for a link?

a)

a { }

b)

link { }

c)

href { }

d)

a href { }

15.

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>

16.

Name an element which does not have a closing tage.

a)

<img>

b)

<head>

c)

<body>

d)

<p>

17.

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

a)

#

b)

()

c)

.

d)

class

18.

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

a)

.

b)

+

c)

id

d)

#

19.

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>

20.

What is the correct code for a paragraph in css?

a)

P

b)

<p> </p>

c)

.p

d)

p {

}