wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Bootcamp Quiz 4-CSS

Total questions: 20

Worksheet time: 21mins

Name
Class
Date
1.

What does CSS stand for? 

a)

Creative Style Sheets

b)

Cascading Style Sheets

c)

Colorful Style Spread

d)

Computer Style Spread

2.

Where in the HTML document is the correct location to insert code to link to your external CSS? 

a)

In the <head> section

b)

In the <body> section

c)

At the very end of the document

d)

At the very beginning of the document

3.

Which is correct CSS syntax? 

a)

{ body; color=black;}

b)

body: color= black

c)

body {color:black;}

d)

(body color is black) 

4.

Which is the selector for a link?

a)

a { }

b)

link { }

c)

href { }

d)

a href { }

5.

Which is the value in this CSS?
p {color: red;}

a)

p

b)

color

c)

red

6.

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.

7.

The style that you are applying to a selector, e.g. border.

a)

Property

b)

Value

c)

Keyword

d)

Length Units

8.

What is wrong with this code?

a)

The style sheet <link> statement belongs between <head> and </head>

b)

The style sheet <link> statement belongs between <title> and </title>

c)

The style sheet <link> statement belongs between </head> and <body>

d)

The style sheet <link> statement belongs immediately after the DOCTYPE statement

9.

In the following statement, which part is the CSS selector?

p {color: gray;}

a)

{color: gray;}

b)

color

c)

gray

d)

p

10.

When CSS is applied to a single tag, how is it being applied?

a)

inline

b)

internal sheet

c)

external sheet

d)

links

11.

Which part of the CSS code below is a CSS declaration?

p {color:red;}

a)

{color: red;}

b)

color

c)

red

d)

p

12.

What is the advantage of using an external style sheet as oppose to using inline styles?

a)

Inline styles are not supported by HTML5

b)

Inline style requires more syntax

c)

More properties can be added in an external style sheet

d)

Updating one external style sheet can change multiple web pages at once

13.

Which of these is the correct code to link the external style sheet named mystyle.css?

a)

<!DOCTYPE html>
<html>
<head>
<link rel=stylesheet href="mystyle.css">
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

b)

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="mystyle.css">
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

c)

<!DOCTYPE html>
<html>
<head>
<links rel="stylesheet" href="mystyle.css">
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

d)

<!DOCTYPE html>
<html>
<head>
<link rel="css" href="mystyle.css">
</head>
<body>

<h1>This is a heading</h1>
<p>This is a paragraph.</p>

</body>
</html>

14.

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

15.

Which CSS selector applies to the yellow element(s) only? Select the correct answers!

a)

li a{ ... }

b)

li.a{ ... }

c)

li, a{ ... }

d)

li-a{ ...}

e)

none of the above

16.

What is the proper CSS format for background color?

a)

back-ground color:orange:

b)

backgroundcolor-orange;

c)

background:color:orange;

d)

background-color:orange;

17.

Which one is the correct syntax for CSS?

a)

property {selector : value}

b)

value {property : selector}

c)

selector {value : property}

d)

selector { property : value}

18.
Which is the selector for a link?
a)
a { }
b)
link { }
c)
href { }
d)
a href { }
19.
The style that you are applying to a selector, e.g. border.
a)
Property
b)
Value
c)
Keyword
d)
Length Units
20.
What is this an example of?
/* This is a multi-line comment */
a)
Syntax
b)
Property 
c)
Value
d)
Comment