Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

{ CSS } 3 Days Boot Camp

Total questions: 30

Worksheet time: 23mins

Name
Class
Date
1.
How to change the below code to inline CSS code <p><font color = "green" size = "5">Hello, World!</font></p>
a)
<p style = "font-color:green; font-size:24px;" >Hello, World!</p>
b)
<p style = "color:green; font-size:24px;" >Hello, World!</p>
c)
<p style = "font color:green, size:24px;" >Hello, World!</p>
d)
<p style = "color:green; size:24px;" >Hello, World!</p>
2.
What is the extension of Stylesheet files?
a)
.style
b)
.ss
c)
.css
d)
.cst
3.

Which of the below options is correct to change the background color to blue in CSS?

a)

body {

background-colour: lightblue;

}

b)

body {

background-color: lightblue;

}

c)

body {

background:color: lightblue;

}

d)

None of the above

4.
How do we comment a statement in CSS?
a)
By using //
b)
By using /* */
c)
By using //* *//
d)
None of the above
5.
Which of the following properties is used to specify the kind of border to display?
a)
border
b)
border:style
c)
border-style
d)
None of the above
6.
How is external CSS added?
a)
Within the link element, outside the head section
b)
Within the link element, inside the head section
c)
Within the external element, outside the head section
d)
We can not add CSS sheet externally
7.
Inline styles are defined within the "style" attribute of the relevant element.
a)
true
b)
false
8.

Change the border size of the body or image

a)

border-style

b)

border-width

c)

border-color

d)

width

9.

To create a dotted border around the page

a)

border-style

b)

border-width

c)

border-color

d)

width

10.

Set the color of the border

a)

border-style

b)

border-width

c)

border-color

d)

width

11.

sets the color of words in a paragraph

a)

h1 {

color: pink;

}

b)

img {

color: pink;

}

c)

body {

color: pink;

}

d)

p {

color: pink;

}

12.

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

13.

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;

}

14.

Which selector will change the font of the text?

a)

font-size

b)

text-align

c)

font-famiy

d)

text-decoration

15.

What will this rule set create?


h1 {

text-decoration: underline overline dotted red;

}

a)

red waves under the heading

b)

red dots over and under the heading

c)

red waves over and under the heading

d)

red dots over the heading

16.

Which rule set would change the font size to 24?

a)

font-size: 24

b)

size: 24;

c)

font-size: 24;

d)

font size: 24;

17.

CSS stands for

a)

Cascading style sheet

b)

Cyber style sheet

c)

Cassandra style sheet

d)

None of the above

18.

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

19.

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

a)

External

b)

Internal

c)

Inline

d)

None of the above

20.

Stye tag will come inside body for

a)

External

b)

Inline

c)

Internal

d)

All of the above

21.

Style will come inside head for

a)

External

b)

Inline

c)

Internal

d)

All of the above

22.

When CSS is written inside HTML it will be saved as

a)

css

b)

Jsp

c)

html

d)

php

23.

External css file will be saved as

a)

.css

b)

.html

c)

.php

d)

None of the above

24.

When you use class selector

What should present infront of classname

a)

#

b)

&

c)

@

d)

.

25.

When you use id selector

What should present infront of idname

a)

?

b)

@

c)

#

d)

.

26.

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

27.

If we want define style for an unique element, then which css selector will we use ?

a)

id

b)

class

c)

tag

d)

name

28.

Which attribute can be added to many HTML elements to identify them as a member of a specific group ?

a)

id

b)

div

c)

class

d)

span

29.

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

30.

How do you change the font color with CSS?

a)

font-color: green;

b)

color: green;

c)

change-font-color: green;

d)

fontcolor=green;