Name: 
 

Chapter 6-CSS



Multiple Choice
Identify the letter of the choice that best completes the statement or answers the question.
 

 1. 

Which of the following is NOT a principle for creating an effective page design?
a.
Use available fonts
c.
Design for legibility
b.
Choose many fonts and sizes
d.
Avoid using text as graphics
 

 2. 

Which of the following would be a good use of type sizes on a Web page?
a.
24 point for body text, 18 point for subheadings, 12 point for headings
b.
24 point for headings, 18 point for body text, 12 point for subheadings
c.
24 point for headings, 18 point for subheadings, 12 point for body text
d.
24 point for subheadings, 18 point for headings, 12 point for body text
 

 3. 

The way a font is displayed is determined by _______________.
a.
the user's browser and operating system
c.
careful and correct HTML coding
b.
the designer's use of the font
d.
all of the above
 

 4. 

One font that is commonly available on all three operating systems (PC, UNIX, and Macintosh) is _______________.
a.
Palatino
c.
Courier
b.
Time/Times New Roman
d.
Verdana
 

 5. 

It is a good idea to specify _______________ as an alternate choice when you are using sans-serif fonts.
a.
Palatino
c.
Courier
b.
Verdana
d.
Helvetica
 

 6. 

Because _______________ is an expanded font, it is easier to read online, but it takes much more space on the page.
a.
Times
c.
Arial
b.
Verdana
d.
Helvetica
 

 7. 

The <FONT> element allows HTML authors to choose all of the following type attributes EXCEPT_______________.
a.
font
c.
resolution
b.
color
d.
size
 

 8. 

The SIZE attribute offers you  _______________ different font sizes to choose from.
a.
4
c.
6
b.
5
d.
7
 

 9. 

Specify alternate fonts in the <FONT> element by listing a string of fonts within quotes in the _______________ attribute.
a.
ALT
c.
ATT
b.
FACE
d.
FNT
 

 10. 

Which of the following statements about typography control is NOT true?
a.
Both the <FONT> element and CSS allow you to specify type point sizes.
b.
Both the <FONT> element and CSS allow you to choose type color.
c.
Both the <FONT> element and CSS allow you to specify alternate fonts.
d.
With HTML 4.0, the <FONT> element has been deprecated in favor of CSS.
 

 11. 

Style rules are composed of two parts: a declaration and a _______________.
a.
selection
c.
value
b.
selector
d.
property
 

 12. 

In the rule H1 {COLOR: RED}, the COLOR element is the  _______________.
a.
selection
c.
value
b.
selector
d.
property
 

 13. 

The <STYLE> element must  _______________.
a.
always include all CSS rules
c.
always be contained in the <HEAD> section
b.
never include all CSS rules
d.
never be contained in the <HEAD> section
 

 14. 

An external style sheet has a(n)  _______________ extension.
a.
.CSS
c.
.STY
b.
.ESS
d.
.CSC
 

 15. 

What is specified by the REL attribute in the following code?

<HEAD>
<TITLE>Sample Document</TITLE>
<LINK HREF='style1.css" REL="stylesheet"
</HEAD>
a.
The URL of the style sheet and all relative file location rules apply
b.
The relationship between the linked and current documents
c.
The filename of the external style sheet
d.
None of the above
 

 16. 

Which of the following statements about browser support of CSS is NOT true?
a.
Strange results appear when browsers cannot interpret the CSS rules properly.
b.
Older browsers will not be able to interpret your CSS rules at all.
c.
Internet Explorer 5.0 does not completely support the CSS specification.
d.
Netscape Navigator 4.x is the leader in style support.
 

 17. 

You can use less code to accomplish the same results by selecting _______________.
a.
by context
c.
with the CLASS attribute
b.
multiple elements
d.
none of the above
 

 18. 

If you want to specify that <I> elements appear blue only within <H2> elements, you should select _______________.
a.
by context
c.
with the CLASS attribute
b.
multiple elements
d.
none of the above
 

 19. 

You can write rules and then apply them to groups of elements that you have classified by using the _______________attribute.
a.
CONTEXT
c.
SPAN
b.
DIV
d.
CLASS
 

 20. 

In the rule .QUOTE {COLOR: RED}, which of the following is the class name?
a.
COLOR
c.
QUOTE
b.
COLOR: RED
d.
.QUOTE
 

 21. 

What does the following rule tell the browser to do?

<STYLE TYPE="text/css">
P {FONT-FAMILY: ARIAL}
</STYLE>
a.
Use Arial as the font for the <P> element.
b.
Use Arial as an alternate font if the default font is not present.
c.
Use Arial for all elements on the page.
d.
Automatically install Arial on the user's computer.
 

 22. 

Which of the following is NOT a generic name for a font family?
a.
Serif
c.
Proportional
b.
Sans-serif
d.
Monospace
 

 23. 

Which of the following is NOT an acceptable CSS measurement unit for fonts?
a.
Pica
c.
Point
b.
En
d.
Ex
 

 24. 

Multiple property statements should be separated with _______________.
a.
periods
c.
backslashes
b.
quote marks
d.
semicolons
 

 25. 

Which of the following is NOT a commonly used descriptive value for font weight?
a.
Thinnest
c.
Bold
b.
Bolder
d.
Normal
 

 26. 

Setting a line height value to 150% with a 10-point font results in a line height of _______________ points.
a.
6.6
c.
25
b.
15
d.
30
 

 27. 

To adjust kerning, use the _______________ property.
a.
letter spacing
c.
text indent
b.
kerning
d.
line height
 

 28. 

Which of the following shows the proper order for the syntax for the font property shortcut?
a.
Selector {FONT: FONT-FAMILY FONT-SIZE/LINE-HEIGHT FONT-WEIGHT}
b.
Selector {FONT: FONT-WEIGHT FONT-SIZE/LINE-HEIGHT FONT-FAMILY}
c.
Selector {FONT: FONT-SIZE FONT-WEIGHT/LINE-HEIGHT FONT-FAMILY}
d.
Selector {FONT-WEIGHT FONT-SIZE/LINE-HEIGHT FONT-FAMILY}
 

 29. 

To set the amount of indentation for the first line of text in an element, use the _______________ property.
a.
hanging indent
c.
text indent
b.
letter indent
d.
kerning
 

 30. 

The COLOR attribute sets the color of _______________.
a.
text only
c.
background only
b.
borders only
d.
none of the above
 

 31. 

How many predefined colors are included with the COLOR attribute?
a.
8
c.
256
b.
16
d.
1024
 

 32. 

Which attribute sets the background color for any element?
a.
BACKGROUND-COLOR
c.
Both a and b
b.
COLOR
d.
Neither a nor b
 

 33. 

The area between the text and border is called the _______________.
a.
margin
c.
buffer
b.
padding
d.
sub-border
 

 34. 

Which of the following statements about specifying text margins is NOT true?
a.
You can use the MARGIN attribute to set the text margin on all four sides.
b.
You can set individual margins on all sides of a block-level element.
c.
Margin amounts must be specified with pixels only.
d.
You can specify the margin amount with any CSS measurement unit.
 

 35. 

Which of the following is NOT a valid text margin setting?
a.
MARGIN-RIGHT
c.
MARGIN-TOP
b.
MARGIN-LEFT
d.
MARGIN-CENTER
 

 36. 

The proper syntax to specify border options is _______________.
a.
{BORDER: BORDER-WIDTH BORDER-STYLE BORDER-COLOR}
b.
{BORDER: BORDER-COLOR BORDER-WIDTH BORDER-STYLE}
c.
{BORDER: BORDER-STYLE BORDER-WIDTH BORDER-COLOR}
d.
{BORDER: BORDER-STYLE BORDER-COLOR BORDER-WIDTH}
 

 37. 

SOLID would be an example of a border _______________.
a.
width
c.
color
b.
style
d.
texture
 

 38. 

Many HTML authors indent their style rules _______________.
a.
to make them easier to read and maintain
b.
because most browsers require code to be written that way
c.
to improve the download time of their Web pages
d.
all of the above
 

 39. 

The first step in setting up a style sheet is to _______________.
a.
style the standard paragraphs
b.
determine the logical divisions for the document
c.
style the chapter title
d.
design the credit and book title
 

 40. 

Which of the following rules must you include in your code if you want the standard paragraph on your page to be 10-point type with 20-point leading?
a.
FONT-SIZE: 20pt;
c.
LEADING: 20pt;
b.
LINE-HEIGHT: 20px;
d.
LINE-HEIGHT: 20pt;
 

True/False
Indicate whether the sentence or statement is true or false.
 

 41. 

Designing for the Web restricts your type choices because you must stick with fonts that your users have installed on their computers.
 

 42. 

Text will wrap the same on screen no matter what font is used, as long as the font size remains constant.
 

 43. 

The code <FONT SIZE=6>Some text</FONT> will set the font size to 6 points.
 

 44. 

The declaration in a style rule contains two elements: a property and a value.
 

 45. 

The style sheet file contains no HTML code, only CSS style rules.
 

 46. 

The main problem with style sheets is their complexity.
 

 47. 

The <LOG> element lets you specify logical divisions within a document that have their own name and style properties.
 

 48. 

Font size MUST be specified in points if you use CSS to set up your pages.
 

 49. 

CSS allows you to specify either a percentage or absolute value for the line height.
 

 50. 

You can create a hanging indent by using a negative value in the text indent property.
 

 51. 

You MUST use one of the sixteen predefined colors when using the COLOR attribute.
 

 52. 

You can specify the padding amount with any CSS measurement unit.
 

 53. 

The border is the area separating the padding and the margin.
 

 54. 

To the browser, it does not matter how you space and indent your style rules, as long as the syntax is correct.
 

 55. 

The most basic content division is the line.
 



 
Check Your Work     Reset Help