Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSS

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

CSS stands for ___

a)

Creative Style Sheet

b)

Creative Scene Sheet

c)

Cascading Sheets style

d)

Cascading Style Sheets

2.

CSS --- how HTML elements are to be displayed on screen, paper, or in other media

a)

embodies

b)

reads

c)

describes

d)

draws

3.

External stylesheets are stored in --- files

a)

CSS

b)

html

c)

HTML

d)

JS

4.

A CSS rule-set consists of a selector and a --block

a)

statement

b)

declaration

c)

answer

d)

lego

5.

__ is a selector in CSS (it points to the HTML element you want to style: < p>).

a)

s

b)

l

c)

m

d)

p

6.

CSS selectors are used to "___" (or select) the HTML elements you want to style

a)

create

b)

print

c)

find

d)

explore

7.

p {

text-align: center;

color: red;

}

would show:

a)

Red text in the middle of the screen

b)

red text

c)

red text to the left of the screen

d)

text in the middle of the screen

8.

.center {

text-align: center;

color: red;

}

In this example all HTML elements with class="center" will be _______________:

a)

center-aligned

b)

red

c)

red and center-aligned

d)

blue and center-aligned

9.

In this example the <p> element will be styled according to class="center" and to class="_______":

<p class="center large">This paragraph refers to two classes.</p>

a)

center

b)

large

c)

middle

d)

paragraph

10.

h1 {

color: navy

margin-left: 20px

}

What is missing for the code to run without errors?

a)

>

b)

<

c)

:

d)

;

11.

<h1 style="background-color:DodgerBlue;">Hello World</h1>

<p style="background-color:Tomato;">Lorem ipsum...</p>

What colour would the paragraph be?

a)

blue

b)

dodger blue

c)

tomato

d)

red

12.

You can set the color of borders.

a)

true

b)

false

13.

In CSS, a color can be specified as an RGB value, using this formula:

rgb(red, green, blue)

a)

true

b)

false

14.

RGBA color values are ___ of RGB color values with an alpha channel - which specifies the opacity for a colour.

a)

a copy

b)

an extension

c)

a difference

15.

The CSS margin properties are used to create ____ around elements, outside of any defined borders.

a)

borders

b)

white

c)

margins

d)

space