Unlock access to all the studying documents.
View Full Document
Unit E Formatting Text with CSS
1. When you create a document in a word processing program, you can format text with any font installed on your
computer.
2. Serifs are small finishing strokes at the ends of lines making up each character.
3. Two common ways to use CSS to modify web page text are making it bold and italic.
4. To specify fonts in your CSS code, you use the font property.
5. A custom font is another name for a font family.
6. An inline element starts on a new line, while a block-level element continues on the same line as the previous element.
Unit E Formatting Text with CSS
7. Developers commonly use pixels to set a default size for an HTML element.
8. You can use the white-space property to create blank space around an element that shares that element’s background
color.
9. Using a triplet of rgb values or using hexadecimal values allow you to specify the same 16.7 million colors.
10. A pseudo-element is an alternative to a span element.
11. Font listings are collections of single typefaces and their variants. _________________________
12. A text-shadow with a value of -2px 1px places the shadow to the left and below the text.
_________________________
13. The span element allows you to isolate a specific section of a larger element. ._________________________
Unit E Formatting Text with CSS
14. The shorthand property for font properties is font-style. _________________________
15. With the rgb system, you provide a set of comma-separated values known as an rgb quartet.
_________________________
16. The rgb system allows for over 16 million color possibilities. _________________________
17. The @print rule enables you to set properties that apply to a printer page._________________________
18. Hexadecimal offers 12 possibilities for each digit. _________________________
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. _______________________
20. The Google Fonts page provides a filter for viewing only fonts with certain characteristics.
_________________________
21. Font ____ are collections of single typefaces and their variants.
Unit E Formatting Text with CSS
22. “Arial, helvetica, sans-serif” is a widely used sans-serif font ____.
23. A font ____ is a list of font families in order of preference, separated by commas.
24. You specify the font family for the text of an element using the CSS font-family ____.
25. You surround any font family name or generic font family name containing more than one word with ____.
26. You use the _______ box-shadow property to determine whether a shadow is displayed inside a border.
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.
28. Which generic font family do you use if you want to simulate code?
Unit E Formatting Text with CSS
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.
30. You can specify the font size of an element using the CSS ____ property.
31. Background–color and color are properties commonly associated with which pseudo-element?
32. You can make text bold using the ____ property.
33. You can add italics using the ____ property.
34. The :first–letter pseudo-element can be used to create a _______.
Unit E Formatting Text with CSS
35. Which media type do you use in a media query for mobile devices?
36. Which of the following is NOT a way that you can specify a color?
37. Which color system should use use when you want to express a color as a triplet with transparency applied?
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 ____.
39. Using the hexadecimal system, the first two digits specify the ____ value.
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.
Unit E Formatting Text with CSS
41. CSS3 added support for the HSL system, which enables you to create colors by specifying values or percentages for
hue, ____, and light.
42. The rule of thumb is to use ____ for headings on a web page.
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.
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.
Common @ font-face descriptors
Unit E Formatting Text with CSS
45. Referring to the figure above, the first line showing the values “normal, bold, 100…” corresponds to the descriptor
____.
46. Referring to the figure above, the second line showing the values “normal, italic, or oblique” corresponds to the
descriptor ____.
47. Referring to the figure above, which value would you use to create the heaviest bold font?
48. Referring to the figure above, Times New Roman and Georgia are examples of ____ fonts.
Unit E Formatting Text with CSS
49. Referring to the figure above, Arial and Tahoma are examples of ____ fonts.
50. Referring to the figure above, Courier New and Lucida Console are ____ fonts because each character uses the same
amount of horizontal space.
51. Referring to the figure above, Monotype Corsiva and Comic Sans are examples of ____ fonts.
52. Referring to the figure above, Papyrus and Impact are examples of ____ fonts.
Unit E Formatting Text with CSS
53. Referring to the figure above, which lines of code will create a drop cap?
54. Referring to the figure above, which style rule uses a class selector?
55. Referring to the figure above, what do you know about the first line of each paragraph?
It will have no padding on the top.
It will have a height of 3em.
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 ____.
Unit E Formatting Text with CSS
Font-family: Tahoma, Arial;
Font-stack: Tahoma, Arial;
Font-family: Tahoma; Arial;
Font-stack: Tahoma; Arial.
57. Gary notices that the current website specifies:
Font–family: tahoma, arial, sans–serif;
In this case, sans–serif is a ____ font family.
58. Gary is learning how to list font family names in CSS. Which of the following is written correctly?
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.
60. Thelma decides she wants to set margins for printed output, so she will use a(n) ______ .
61. In the figure above, a(n) ________________ element was used to create the raised appearance at the bottom of the
page.
62. “Arial, helvetica, sans-serif” is a widely used sans-serif font ________________.
63. CSS defines five ________________ font families, which are groupings of font families according to shared
characteristics.
64. You can specify font-size values in different units, but developers commonly set font size throughout the page in ems
and ________________ .
65. The ________________ element is a generic element, like div; however, it allows you to isolate a specific section of
a larger element.
66. ________________ elements are the larger chunks that structure a web page, such as headings and paragraphs.
67. The link element media type value “screen” is intended for use with ____ screens.
68. What is the default line height of many font families and why is it important to know this?
69. Name the four CSS color systems and list the advantages and disadvantages of each.
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?
Match each property with an example of how that text might appear if that property is applied.
74. text appears in small caps
75. text appears bold, italic, 16px, and with more white space above and below it than the default
Disadvantage: Not widely supported by older browsers
REFERENCES:
122
Critical Thinking
Unit E Formatting Text with CSS