Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Lesson 4: Understanding CSS Essentials: Content Flow, Positionin

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which of the following is most related to CSS?

a)

presentation

b)

content

c)

validation

d)

scripting

2.

What can you accomplish with CSS? (Choose all that apply.)

a)

create rounded borders on boxes

b)

add shadows to boxes and text

c)

change the content of text

d)

use multiple images in a background

3.

Notepad, textwrangler, and Microsoft Visual Studio are examples of ______.

a)

IDEs

b)

drawing programs

c)

editors

d)

validation programs

4.

You want your HTML document to reference styles in a file named default.css. Which markup do you use in your HTML document?

a)

<link css = "default.css" rel = "stylesheet" type = "text/css">

b)

<link href = "default.css" rel = "stylesheet" type = "text/css">

c)

<link href = "default.css" rel = "css" type = "text/css">

d)

<link href = "defaut.css" rel = "stylesheet" type = "text/css">

5.

Which section of an HTML file does the <link> tag for an external CSS file appear?

a)

doctype declaration

b)

<head>

c)

<body>

d)

none of the above

6.

In the following markup, what is the #slogan construct called?

p {color: brown;}

#slogan {

font-size:20px;

color: green;

font-style: italic;

}

a)

property

b)

value

c)

declaration

d)

ID selector

7.

What CSS codes do you use to mark text as a comment?

a)

/* text */

b)

/# text #/

c)

<!-- text -->

d)

<* text *>

8.

An ordinary text paragraph is an example of which of the following?

a)

inline flow

b)

paragraph flow

c)

block flow

d)

CSS flow

9.

In the following markup, what is the {color: brown;} construct called?

p {color: brown;}

#slogan {

font-size:20px;

color: green;

font-style: italic;

}

a)

property

b)

value

c)

declaration

d)

ID selector

10.

You are styling three columns in an ordinary Web page using the following code. What happens to the third column?

<style type = 'text/css'>

#col1 { float: left; width: 150px; }

#col2 { float: left; width: 120px; }

</style>

a)

It does not display.

b)

It displays before the first and second columns.

c)

It fills up any remaining space.

d)

It displays over the top of columns 1 and 2.

11.

You want to use the serif font family in an HTML document. Which CSS code do you use?

a)

ffamily: serif;

b)

font = serif;

c)

font-family: Times New Roman;

d)

font-family: serif;

12.

You are styling three columns in an ordinary Web page. You want column 2 (col2) to appear in a specific place on the page. What CSS property name do you substitute for the word PROPERTY in the following code?

<style type = 'text/css'>

#col2 { PROPERTY: left; width: 120px; }

</style>

a)

float

b)

absolute

c)

exactly

d)

anchor

13.

A _______ is a rectangular border around text that acts like a container?

a)

bounding box

b)

rule

c)

block

d)

break

14.

You have more content than a bounding box can display at one time, causing information to overflow the box. Which CSS property and value do you use to ensure all content stays within the box?

a)

scroll: overflow;

b)

overflow: contain;

c)

overflow: scroll;

d)

box: nooverflow;

15.

You have more content than a bounding box can display at one time, causing information to overflow the box. Which CSS overflow value do you use to allow content to display outside of the box?

a)

overflow: overflow;

b)

overflow: nocontain;

c)

overflow: flow;

d)

overflow: visible

16.

You have more content than a bounding box can display at one time, causing information to overflow the box. Which CSS overflow value do you use to prevent content from displaying outside of the box?

a)

overflow: hidden;

b)

overflow: truncate;

c)

overflow: stop;

d)

overflow: invisible;

17.

Which of the following are required for a CSS declaration? (Choose all that apply.)

a)

property

b)

value

c)

pound sign

d)

curly brackets

18.

What is the prefix for a CSS class selector?

a)

a pound sign

b)

a period

c)

a slash

d)

nothing, it doesn’t require a prefix

19.

What is the prefix for a CSS ID selector?

a)

a pound sign

b)

a period

c)

a slash

d)

nothing, it doesn’t require a prefix

20.

What CSS construct enables developers to use any font they choose to style an HTML document, even a font located on a different Web server?

a)

font property

b)

font-location property

c)

@get-font rule

d)

@font-face rule