True/False
Indicate whether the sentence or statement is true
or false.
|
|
1.
|
The
following rule sets margins to 1.25 inches.
p {margin: 1.25in;}
|
|
2.
|
You
should always use absolute units for Web pages because they can scale to the individual user's
display type.
|
|
3.
|
The
following rule sets the font size for the <body> element to one-and-one-half of the browser
default.
body {font-size: 100%;}
|
|
4.
|
In
the following example, the <b> text will be 125% larger than the <p> that contains
it.
p {font-size: 12pt;}
p b
{font-size: 125%;}
|
|
5.
|
You
can string together a list of substitute font families, separated by commas.
|
|
6.
|
The
following rule sets all elements on the page to sans-serif font.
p {font-family: sans-serif;}
|
|
7.
|
Each
block-level element you create is displayed as a box containing content in the browser
window.
|
|
8.
|
The
CSS color property replaces the obsolete <font> element in HTML.
|
|
9.
|
The
border-color cannot be a hexadecimal value.
|
|
10.
|
By
default, the background color of any element is transparent.
|
Multiple Choice
Identify the
letter of the choice that best completes the statement or answers the question.
|
|
11.
|
Which
of the following fonts is the traditional letter form, with strokes that finish off the top
and bottom of the letter? a. | Serif | c. | Cursive | b. | Fantasy | d. | Monospace | | | | |
|
|
12.
|
Which
of the following properties lets you state three properties for all four borders of any
element? a. | border | c. | margin | b. | style | d. | padding | | | | |
|
|
13.
|
The
border-style property lets you choose from which of the following border style
keywords? a. | None | c. | Top | b. | Multiple | d. | Bottom | | | | |
|
|
14.
|
Which
of the following properties lets you state the width of the border with either a keyword or a length
value? a. | width | c. | margin | b. | border-width | d. | padding | | | | |
|
|
15.
|
A
computer monitor displays color by mixing three basic colors of light: Red, Green, and Blue.
These are called _____ colors. a. | RPG | c. | channel | b. | RGB | d. | color
depth | | | | |
|
|
16.
|
Which
of the following is the amount of data used to create the color? a. | RGB | c. | data | b. | channel | d. | color depth | | | | |
|
|
17.
|
Which
of the following properties lets you specify the foreground color of any element on a Web
page? a. | foreground | c. | background | b. | color | d. | color depth | | | | |
|
|
18.
|
The
_____ for the color property is a valid color keyword or numerical representation, either hexadecimal
or a RGB value. a. | instance | c. | value | b. | amount | d. | attribute | | | | |
|
|
19.
|
Which
of the following properties lets you set the background color of any element on a Web
page? a. | foreground-color | c. | color | b. | background-color | d. | depth | | | | |
|
|
20.
|
Which
of the following properties lets you control the margin, padding, and border characteristics of
block-level elements? a. | inspector | c. | margin | b. | box | d. | padding | | | | |
|
|
21.
|
Which
of the following properties gives you control over the specific sizing of your type? a. | size | c. | font-family | b. | type | d. | font-size | | | | |
|
|
22.
|
Which
of the following units are designed to let you build scalable Web pages that adapt to different
display types and sizes? a. | relative | c. | absolute | b. | percentage | d. | attributes | | | | |
|
|
23.
|
The
size of the em in CSS is equivalent to the font size of which of the following? a. | element | c. | tag | b. | attribute | d. | margin | | | | |
|
|
24.
|
Which
of the following is the measure of how many pixels fit on a screen? a. | pixelation | c. | percentage | b. | resolution | d. | ex | | | | |
|
|
25.
|
Which
of the following is NOT a CSS property that allows you to control the appearance of the text of a Web
page? a. | font-size | c. | line-height | b. | font-family | d. | <div> | | | | |
|
|
26.
|
What
does the following code do?
p {font-family: arial, helvetica;}
a. | It tells the browser to use Arial font
always. | b. | It tells the browser to use Helvetica if Arial is not
present. | c. | It tells the browser to use any font but not Arial or
Helvetica. | d. | It tells the browser to use both fonts every
time. | | |
|
|
27.
|
What
does the following rule do?
p {line-height: 150%}
a. | It sets the paragraph's height to
150%. | b. | It sets the line height to 150%. | c. | It sets the
paragraph's height and the line height to 150%. | d. | It sets the
page's height to 150%. | | |
|
|
28.
|
Which
of the following describes the rectangular boxes that contain content on a Web page?
a. | margin | c. | box model
| b. | padding | d. | box
properties | | | | |
|
|
29.
|
Which
of the following is used to enhance the legibility of text, create indented elements, and add
whitespace around image? a. | paddings | c. | borders | b. | margins | d. | colors | | | | |
|
|
30.
|
Which
of the following is a shorthand property that lets you set all four individual margins with one
property? a. | paddings | c. | margin | b. | borders | d. | tags | | | | |
|
|
31.
|
What
does this following rule do?
p {border:
solid;}
a. | It sets the
border and the paragraph style to solid. | b. | It sets the page style to solid. | c. | It sets the
border style to solid. | d. | It sets the paragraph style to solid. | | |
|
|
32.
|
Which
of the following is the default browser font? a. | Times | c. | Helvetica | b. | Arial | d. | Sans-serif | | | | |
|
|
33.
|
The
unit abbreviation for Centimeter is _____.
|
|
34.
|
How
many points are there in an inch?
|
|
35.
|
Which
one of the following is NOT an absolute unit? a. | Centimeter | c. | Point | b. | Inch | d. | Ex | | | | |
|
|
36.
|
Which
one of the following is NOT a relative unit?
|
|
37.
|
The
standard publishing unit that is equal to 12 points is _____. a. | Point | c. | Inch | b. | Pica | d. | Millimeter | | | | |
|
|
38.
|
The
unit that represents the height of the letter x in the current font is _____.
|
|
39.
|
Which
of the following is NOT a font family? a. | Arial | c. | Monospace | b. | Serif | d. | Cursive | | | | |
|
|
40.
|
Which
of the following must be included in order for the border to appear? a. | border-width | c. | border-color | b. | border-style | d. | border-show | | | | |
|
|
41.
|
When
no color is stated, the border-color will be _____. a. | blue | c. | gray | b. | black | d. | white | | | | |
|
|
42.
|
The
three color numbers specified in a border-color are: _____ a. | red, black, and
blue | c. | red, gray, and
black | b. | red, green, and blue | d. | purple, red, and green | | | | |
|
|
43.
|
The
property that sets the background color of an element is _____. a. | bg | c. | background-color | b. | background | d. | color | | | | |
|
|
44.
|
What
is the blue percent in the following rule?
p {color: rgb(0%, 25%, 75%);}
|
|
45.
|
The
color specified in the following rule is _____.
p {color: #0000ff;}
a. | octal | c. | a RGB number | b. | hexadecimal | d. | a
percentage | | | | |
|
Completion
Complete each sentence or
statement.
|
|
46.
|
CSS
offers a variety of measurement units, including absolute units (such as points), relative units
(such as pixels), and ____________________ of the base font.
|
|
47.
|
CSS
lets you use ____________________ measurement values that specify a fixed value.
|
|
48.
|
The
____________________ units are designed to let you build scalable Web pages that adapt to different
display types and sizes.
|
|
49.
|
____________________ are the basic picture element of a computer
display.
|
|
50.
|
The
____________________ property lets you state a generic font name, such as
sans-serif.
|
|
51.
|
To
specify a default size for a document, use ____________________ as the selector.
|
|
52.
|
The
CSS ____________________ property replaces the obsolete <font> element in
HTML.
|
|
53.
|
If
the user did not specify a font, the browser will use the ____________________ font.
|
|
54.
|
If
the border-width is not included , the width will default to ____________________.
|
|
55.
|
Border widths include: thin, medium, and ____________________.
|