wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Css quizz kec

Total questions: 20

Worksheet time: 8mins

Name
Class
Date
1.

What does a class do?

a)

adds color to words

b)

adds style to specific elements

c)

adds style to a whole page

d)

adds a lot more work

2.

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.

3.

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">

4.
If you want to have more than one declaration in a CSS rule, what character separates them?
a)
comma ,
b)
semi-colon ;
c)
colon :
5.
What is the proper code to insert an image named "frog.jpg"?
a)
<img src="frog" width="104" height="142">
b)
<img="frog.jpg" width="104" height="142">
c)
<img src="frog.jpg" width="104" height="142">
d)
<img ="frog" width="104" height"142">
6.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
7.
Which is the selector for a link?
a)
a { }
b)
link { }
c)
href { }
d)
a href { }
8.
What unit of measurement does CSS use for size?
a)
px
b)
em
c)
%
d)
All work
9.

How many different styling techniques are used in CSS?

a)

2

b)

4

c)

3

d)

1

10.

Style tag will come inside body for

a)

External

b)

Inline

c)

Internal

d)

All of the above

11.

When you use class selector

What should present infront of classname

a)

#

b)

&

c)

@

d)

.

12.

Is CSS

a)

Used in client side scripting

b)

Used in server side scripting

c)

Both server and client side scripting

d)

None of the above

13.

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

14.

When CSS is written inside HTML it will be saved as

a)

css

b)

Jsp

c)

html

d)

php

15.

The correct sequence of HTML tags for starting a webpage is -

a)

Head, Title, HTML, body

b)

HTML, Body, Title, Head

c)
  1. HTML, Head, Title, Body

d)

HTML, Head, Title, Body

16.

Which tag is used to create a line break in HTML?

a)

<br>

b)

<lb>

c)

<break>

d)

<line>

17.

sets the color of words in a paragraph

a)

h1 {

color: pink;

}

b)

img {

color: pink;

}

c)

body {

color: pink;

}

d)

p {

color: pink;

}

18.

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

a)

p {

color: blue;

}

b)

body {

text-align: left;

color: blue;

}

c)

p {

text-align: center;

color: blue;

}

d)

body {

text-align: center;

color: blue;

}

19.

What is the correct syntax to change the background color with css?

a)

background-color: purple;

b)

background-color = "purple";

c)

backgroundcolor=orange

d)

change-background-color: purple

20.
What is the proper code to insert an image named "frog.jpg"?
a)
<img src="frog" width="104" height="142">
b)
<img="frog.jpg" width="104" height="142">
c)
<img src="frog.jpg" width="104" height="142">
d)
<img ="frog" width="104" height"142">