You are on page 1of 15

Name: Class: Date:

Unit E Formatting Text with CSS

Solution Manual for HTML5 and CSS3 Illustrated Introductory 2nd


Edition Vodnik 1305394054 9781305394056
Full download link at:
Solution manual: https://testbankpack.com/p/solution-manual-for-html5-and-css3-illustrated-introductory-2nd-
edition-vodnik-1305394054-9781305394056/
Test bank: https://testbankpack.com/p/test-bank-for-html5-and-css3-illustrated-introductory-2nd-edition-vodnik-
1305394054-9781305394056/
1. When you create a document in a word processing program, you can format text with any font installed on your
computer.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 110

2. Serifs are small finishing strokes at the ends of lines making up each character.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 76

3. Two common ways to use CSS to modify web page text are making it bold and italic.

a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 118

4. To specify fonts in your CSS code, you use the font property.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 112

5. A custom font is another name for a font family.


a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 114
Cengage Learning Testing, Powered by Cognero Page 1
Name: Class: Date:

Unit E Formatting Text with CSS

6. An inline element starts on a new line, while a block-level element continues on the same line as the previous element.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 118

7. Developers commonly use pixels to set a default size for an HTML element.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 116

8. You can use the white-space property to create blank space around an element that shares that element's background
color.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 117

9. Using a triplet of rgb values or using hexadecimal values allow you to specify the same 16.7 million colors.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 123

10. A pseudo-element is an alternative to a span element.


a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 120

11. Font listings are collections of single typefaces and their variants. _________________________
ANSWER: False - families
POINTS: 1
REFERENCES: 110

12. A text-shadow with a value of -2px 1px places the shadow to the left and below the text.
_________________________

Cengage Learning Testing, Powered by Cognero Page 2


Name: Class: Date:

Unit E Formatting Text with CSS


ANSWER: True
POINTS: 1
REFERENCES: 124

13. The span element allows you to isolate a specific section of a larger element. ._________________________
ANSWER: True
POINTS: 1
REFERENCES: 118

14. The shorthand property for font properties is font-style. _________________________


ANSWER: False - font
POINTS: 1
REFERENCES: 119

15. With the rgb system, you provide a set of comma-separated values known as an rgb quartet.
_________________________
ANSWER: False - triplet
POINTS: 1
REFERENCES: 122

16. The rgb system allows for over 16 million color possibilities. _________________________
ANSWER: True
POINTS: 1
REFERENCES: 123

17. The @print rule enables you to set properties that apply to a printer page._________________________
ANSWER: False - @page
POINTS: 1
REFERENCES: 126

18. Hexadecimal offers 12 possibilities for each digit. _________________________


ANSWER: False - 16
POINTS: 1
REFERENCES: 123

19. Setting the display value to inline keeps all elements on the same line, rather than displaying them on separate
lines, which is the default. _______________________
ANSWER: True
POINTS: 1
REFERENCES: 118

20. The Google Fonts page provides a filter for viewing only fonts with certain characteristics.
_________________________
ANSWER: True
POINTS: 1
Cengage Learning Testing, Powered by Cognero Page 3
Name: Class: Date:

Unit E Formatting Text with CSS


REFERENCES: 115

21. Font ____ are collections of single typefaces and their variants.
a. properties b. families
c. sets d. stacks
ANSWER: b
POINTS: 1
REFERENCES: 110

22. “Arial, helvetica, sans-serif” is a widely used sans-serif font ____.


a. property b. family
c. set d. stack
ANSWER: d
POINTS: 1
REFERENCES: 110

23. A font ____ is a list of font families in order of preference, separated by commas.
a. property b. family
c. set d. stack
ANSWER: d
POINTS: 1
REFERENCES: 110

24. You specify the font family for the text of an element using the CSS font-family ____.
a. property b. set
c. stack d. id
ANSWER: a
POINTS: 1
REFERENCES: 110

25. You surround any font family name or generic font family name containing more than one word with ____.
a. parentheses b. quotes
c. Either A or B. d. Neither A nor B.
ANSWER: b
POINTS: 1
REFERENCES: 110

26. You use the _______ box-shadow property to determine whether a shadow is displayed inside a border.
a. inset b. blur
c. speed distance d. vertical offset
ANSWER: a
POINTS: 1
REFERENCES: 76

Cengage Learning Testing, Powered by Cognero Page 4


Name: Class: Date:

Unit E Formatting Text with CSS


27. To specify fonts in your CSS code, you use the font-family property. The font-family property value is a
font stack that includes one or more font family names and ends with a(n) ____ font family name.
a. universal b. generic
c. specific d. assigned
ANSWER: b
POINTS: 1
REFERENCES: 110

28. Which generic font family do you use if you want to simulate code?
a. serif b. monopsace
c. cursive d. fantasy
ANSWER: b
POINTS: 1
REFERENCES: 111

29. Instead of using fonts located on your web server in your web pages, many companies that create and license fonts
enable you to link to fonts on their web servers. To do so, you add an additional link element to your HTML file using a
web address provided by the host as the value for the ____ attribute.
a. src b. href
c. http d. url
ANSWER: b
POINTS: 1
REFERENCES: 110

30. You can specify the font size of an element using the CSS ____ property.
a. font-width b. font-height
c. font-size d. font-shape
ANSWER: c
POINTS: 1
REFERENCES: 116

31. Background-color and color are properties commonly associated with which pseudo-element?
a. :first-line b. :selection
c. :before d. :after
ANSWER: b
POINTS: 1
REFERENCES: 120

32. You can make text bold using the ____ property.
a. font-weight b. font-style
c. Either A or B. d. Neither A nor B.
ANSWER: a
POINTS: 1
REFERENCES: 118
Cengage Learning Testing, Powered by Cognero Page 5
Name: Class: Date:

Unit E Formatting Text with CSS

33. You can add italics using the ____ property.


a. font-weight b. font-style
c. Either A or B. d. Neither A nor B.
ANSWER: b
POINTS: 1
REFERENCES: 118

34. The :first-letter pseudo-element can be used to create a _______.


a. new paragraph b. drop cap
c. text shadow d. text frame
ANSWER: b
POINTS: 1
REFERENCES: 82

35. Which media type do you use in a media query for mobile devices?
a. screen b. handheld
c. all d. humobilee
ANSWER: c
POINTS: 1
REFERENCES: 126

36. Which of the following is NOT a way that you can specify a color?
a. As a name. b. In hexadecimal format.
c. In rgb format. d. In em format.
ANSWER: d
POINTS: 1
REFERENCES: 122

37. Which color system should use use when you want to express a color as a triplet with transparency applied?
a. RGB b. RGBa
c. HSL d. HSLa
ANSWER: b
POINTS: 1
REFERENCES: 122

38. Using the hexadecimal system, the value starts with a pound sign (#), followed by six digits, which may include the
numbers 0–9 and the letters ____.
a. a-c b. a-d
c. a-e d. a-f
ANSWER: d
POINTS: 1
REFERENCES: 122

Cengage Learning Testing, Powered by Cognero Page 6


Name: Class: Date:

Unit E Formatting Text with CSS


39. Using the hexadecimal system, the first two digits specify the ____ value.
a. red b. green
c. blue d. yellow
ANSWER: a
POINTS: 1
REFERENCES: 122

40. With the rgb system, each value ranges from 0–____ or 0–100%, which represent the amounts of red, green, and blue
in the color.
a. 143 b. 146
c. 242 d. 255
ANSWER: d
POINTS: 1
REFERENCES: 122

41. CSS3 added support for the HSL system, which enables you to create colors by specifying values or percentages for
hue, ____, and light.
a. settings b. saturation
c. shading d. shadows
ANSWER: b
POINTS: 1
REFERENCES: 122

42. The rule of thumb is to use ____ for headings on a web page.
a. serif b. sans-serif
c. web safe d. custom
ANSWER: a
POINTS: 1
REFERENCES: 113

43. Some web browsers automatically change printed output to black and white, but using a print ____ ensures that this
formatting is available for users of all browsers.
a. property page b. style page
c. property sheet d. style sheet
ANSWER: d
POINTS: 1
REFERENCES: 126

44. HTML allows you to link to multiple style sheets in the same web document, using the ____ attribute of the link
element to specify which type of device should use each style sheet.
a. value b. media
c. device d. agent
ANSWER: b
POINTS: 1

Cengage Learning Testing, Powered by Cognero Page 7


Name: Class: Date:

Unit E Formatting Text with CSS


REFERENCES: 126

Common @ font-face descriptors

45. Referring to the figure above, the first line showing the values “normal, bold, 100...” corresponds to the descriptor
____.
a. font-weight b. font-style
c. font-stretch d. font-family
ANSWER: a
POINTS: 1
REFERENCES: 119

46. Referring to the figure above, the second line showing the values “normal, italic, or oblique” corresponds to the
descriptor ____.
a. font-weight b. font-style
c. font-stretch d. font-family
ANSWER: b
POINTS: 1
REFERENCES: 119

47. Referring to the figure above, which value would you use to create the heaviest bold font?
a. bold b. 100
c. 500 d. 900
ANSWER: d
POINTS: 1
REFERENCES: 119

Cengage Learning Testing, Powered by Cognero Page 8


Name: Class: Date:

Unit E Formatting Text with CSS

48. Referring to the figure above, Times New Roman and Georgia are examples of ____ fonts.
a. Serif b. Sans serif
c. Fantasy d. Cursive
ANSWER: a
POINTS: 1
REFERENCES: 111

49. Referring to the figure above, Arial and Tahoma are examples of ____ fonts.
a. Serif b. Sans serif
c. Fantasy d. Cursive
ANSWER: b
POINTS: 1
REFERENCES: 111

50. Referring to the figure above, Courier New and Lucida Console are ____ fonts because each character uses the same
amount of horizontal space.
a. Block b. Monospace
c. Equalized d. Code
ANSWER: b
POINTS: 1
REFERENCES: 111

51. Referring to the figure above, Monotype Corsiva and Comic Sans are examples of ____ fonts.
a. Serif b. Sans serif
c. Fantasy d. Cursive
ANSWER: d
Cengage Learning Testing, Powered by Cognero Page 9
Name: Class: Date:

Unit E Formatting Text with CSS


POINTS: 1
REFERENCES: 111

52. Referring to the figure above, Papyrus and Impact are examples of ____ fonts.
a. Serif b. Sans serif
c. Fantasy d. Cursive
ANSWER: c
POINTS: 1
REFERENCES: 111

53. Referring to the figure above, which lines of code will create a drop cap?
a. 50-52 b. 53-55
c. 56-58 d. 59-63
ANSWER: d
POINTS: 1
REFERENCES: 121

54. Referring to the figure above, which style rule uses a class selector?
a. article b. article p
c. article p:first line d. title
ANSWER: d
POINTS: 1
REFERENCES: 121
Cengage Learning Testing, Powered by Cognero Page 10
Name: Class: Date:

Unit E Formatting Text with CSS

55. Referring to the figure above, what do you know about the first line of each paragraph?
a. It will float left. b. It will be bold.
c. It will have no padding on the top. d. It will have a height of 3em.
ANSWER: b
POINTS: 1
REFERENCES: 121

Case-Based Critical Thinking Question


Gary works at a local ice rink and has been assigned the task of determining what fonts to use on the website.
56. Gary decides to specify two font families. The correct CSS for specifying this would be ____.
a. Font-family: Tahoma, Arial; b. Font-stack: Tahoma, Arial;
c. Font-family: Tahoma; Arial; d. Font-stack: Tahoma; Arial.
ANSWER: a
POINTS: 1
REFERENCES: 110
TOPICS: Critical Thinking

57. Gary notices that the current website specifies:


Font-family: tahoma, arial, sans-serif;

In this case, sans-serif is a ____ font family.

a. specific b. generic
c. named d. primary
ANSWER: b
POINTS: 1
REFERENCES: 110
TOPICS: Critical Thinking

58. Gary is learning how to list font family names in CSS. Which of the following is written correctly?
a. “Tahoma” b. “Arial”
c. “Sans-serif: d. “Time New Roman”
ANSWER: d
POINTS: 1
REFERENCES: 112
TOPICS: Critical Thinking

Case-Based Critical Thinking Question


Thelma is a web developer for a bowling league. She wants visitors to the website to be able to print web pages, such as
league schedules.
59. Thelma knows her visitors will have a wide variety of printers. The first thing she does is create a ________, listing
the value as print.
Cengage Learning Testing, Powered by Cognero Page 11
Name: Class: Date:

Unit E Formatting Text with CSS


a. style rule b. media query
c. link to printer rule d. print styles query
ANSWER: b
POINTS: 1
REFERENCES: 126
TOPICS: Critical Thinking

60. Thelma decides she wants to set margins for printed output, so she will use a(n) ______ .
a. @media query b. margin element
c. @page rule d. print selector
ANSWER: c
POINTS: 1
REFERENCES: 126
TOPICS: Critical Thinking

61. In the figure above, a(n) ________________ element was used to create the raised appearance at the bottom of the
page.
ANSWER: box-shadow

Cengage Learning Testing, Powered by Cognero Page 12


Name: Class: Date:

Unit E Formatting Text with CSS


POINTS: 1
REFERENCES: 124

62. “Arial, helvetica, sans-serif” is a widely used sans-serif font ________________.


ANSWER: stack
POINTS: 1
REFERENCES: 110

63. CSS defines five ________________ font families, which are groupings of font families according to shared
characteristics.
ANSWER: generic
POINTS: 1
REFERENCES: 110

64. You can specify font-size values in different units, but developers commonly set font size throughout the page in ems
and ________________ .
ANSWER: rems
POINTS: 1
REFERENCES: 116

65. The ________________ element is a generic element, like div; however, it allows you to isolate a specific section of
a larger element.
ANSWER: span
POINTS: 1
REFERENCES: 118

66. ________________ elements are the larger chunks that structure a web page, such as headings and paragraphs.
ANSWER: Block-level
POINTS: 1
REFERENCES: 118

67. The link element media type value “screen” is intended for use with ____ screens.
ANSWER: computer
POINTS: 1
REFERENCES: 126

68. What is the default line height of many font families and why is it important to know this?
ANSWER: The default line height of many font families is 1.2em. It is important to know this because the design of
each font family includes blank space above and below every line of text. You want to increase this
space, you can use the line-height property, and then set a value that is larger than the default line
height.
POINTS: 1
REFERENCES: 116
TOPICS: Critical Thinking

Cengage Learning Testing, Powered by Cognero Page 13


Name: Class: Date:

Unit E Formatting Text with CSS


69. Name the four CSS color systems and list the advantages and disadvantages of each.
ANSWER: name
Advantage: Names are easier to remember and harder to enter incorrectly
Disadvantage: Limited color selection

hexadecimal
Advantage: Can specify over 16 million colors
Disadvantage: Format is not intuitive; values are not easy to remember and harder to proofread

rgb
Advantage: Can specify over 16 million colors; format more intuitive than hexadecimal; can create using
graphic design software
Disadvantage: Values are not easy to remember and harder to proofread

hsl
Advantage: More intuitive than rgb-based systems; not based on the use of CRT monitors
Disadvantage: Not widely supported by older browsers
POINTS: 1
REFERENCES: 122
TOPICS: Critical Thinking

70. What are the two rgb color systems and how many colors does it allow you to specify? How do you specify a color in
each of the two color systems?
ANSWER: The two rgb color systems—using a triplet of rgb values or using hexadecimal values—allow you to
specify the same 16.7 million colors.
Each value in an rgb triplet can range from 0 to 255, giving you 256 possible values (1–255, plus the
value 0).
Hexadecimal values provide the same range in only two digits. The standard decimal numbering system
allows 10 possibilities for each digit: the numbers 0–9. Hexadecimal (from roots meaning “six” and
“ten”) offers 16 possibilities for each digit: the numbers 0–9 plus the letters A–F.
POINTS: 1
REFERENCES: 122
TOPICS: Critical Thinking

Match each property with an example of how that text might appear if that property is applied.
a. font-style
b. font-variant
c. font
d. font-weight
e. font-size
REFERENCES: 119

71. text appears bold


ANSWER: d
POINTS: 1

Cengage Learning Testing, Powered by Cognero Page 14


Name: Class: Date:

Unit E Formatting Text with CSS


72. text appears italic
ANSWER: a
POINTS: 1

73. text appears as 12px


ANSWER: e
POINTS: 1

74. text appears in small caps


ANSWER: b
POINTS: 1

75. text appears bold, italic, 16px, and with more white space above and below it than the default
ANSWER: c
POINTS: 1

Cengage Learning Testing, Powered by Cognero Page 15

You might also like