wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CSS - Day 4

Total questions: 21

Worksheet time: 24mins

Name
Class
Date
1.

CSS stands for

a)

Cascading style sheet

b)

Cyber style sheet

c)

Cassandra style sheet

d)

None of the above

2.

What are the three types of style sheet

a)

Internal, external, inline

b)

Inline, internal, extreme

c)

Insidious, internal, external

d)

None of the above

3.

<link type="stylsheet" href="exx.css"> belongs to

a)

External

b)

Internal

c)

Inline

d)

None of the above

4.

External css file will be saved as

a)

.css

b)

.html

c)

.php

d)

None of the above

5.

When you use id selector

What should present infront of idname

a)

?

b)

@

c)

#

d)

.

6.

When you use class selector

What should present infront of classname

a)

#

b)

&

c)

@

d)

.

7.

Where should you put the link tag to connect your CSS and HTML file?

a)

Between the <head> </head> in HTML

b)

Between the <body> </body> in HTML

c)

None of the above.

8.

Which of the following is the correct CSS link tag?

a)

<link rel="styles" href="stylesheet.css">

b)

<link href="stylesheet">

c)

<link rel="stylesheet" src="styles.css">

d)

<link rel="stylesheet" href="styles.css">

9.
What unit of measurement does CSS use for size?
a)
px
b)
em
c)
%
d)
All work
10.

Set the color of the border

a)

border-style

b)

border-width

c)

border-color

d)

width

11.

The blue is called an _____________

a)

Declaration

b)

Selector

c)

Property

d)

Value

12.
How do we comment a statement in CSS?
a)
By using //
b)
By using /* */
c)
By using //* *//
d)
None of the above
13.

What is the main advantage of inline CSS?

a)

A.It's quicker to write

b)

B.It links to an external file

c)

C.You can write it in 3 languages

d)

D.There are no advantages

14.

Which CSS property controls the text size?

a)

text-size

b)

font-size

c)

text-style

d)

font-style

15.
Which CSS code centers text?
a)
p {align: center;}
b)
p {text-align: center;}
c)
p {align=center;}
d)
p {center;}
16.

Which of the following properties would allow you to change the style of the text in a paragraph?

a)

color

b)

text-align

c)

font-family

d)

text-size

e)

text-decoration

17.

What's the error in the following CSS code?

a)

The background color is not set.

b)

The width and height values are missing units (e.g., px).

c)

The padding and margin values are too small.

d)

There are no errors in the code.

18.
Select the code below that uses CSS to configure a background color of #000000 for a web page.
a)
body { background-color: #000000; }
b)
body { bgcolor: #000000; }
c)
document { background­-page: #000000; }
d)
None of these
19.
What is the difference between HTML and CSS?
a)
CSS is one type of HTML
b)
HTML gives a webpage structure. CSS provides styling.
c)
CSS structures a webpage. HTML strictly provides styling.
d)
There is no difference.
20.

How do you define a CSS class "myClass" on an element?

a)

<div class="myClass">...</div>

b)

<div>...</div class="myClass">

c)

<div><class>myClass</class>...</div>

d)

<class>myClass<div>...</div></class>

21.

What is the fixed size, like a tiny dot on a screen?

a)

Pixels (px)

b)

Percentage (%)

c)

Viewport Units (vw and vh)