Name:
Class:
Date:
1. To create a link, you enclose the text you want to serve as a link within an a element using the <cl></cl> tag pair.
a.
True
b.
False
False
1
140
2. While several protocols are in use on the Internet, the web uses only http and https.
a.
True
b.
False
True
1
140
3. Web pages on a small website never share the same folder on a web server.
a.
True
b.
False
False
1
142
4. You can create a link on any text on a web page.
a.
True
b.
False
True
1
143
5. Mailto links are widely used.
a.
True
b.
False
False
1
6. The a:active style rule must follow the a:visited style rule to be effective.
a.
True
b.
False
False
1
7. The method for clearing browsing history varies among browsers but is commonly listed under privacy or safety
settings.
Name:
Class:
Date:
a.
True
b.
False
True
1
155
8. While it’s common to change font color for links using pseudo-classes, you can change other element styles as well,
including background.
a.
True
b.
False
True
1
150
9. A pseudo-class and a class can be used interchangeably.
a.
True
b.
False
False
1
148
10. By default a block-level element is rendered with a line break before and after.
a.
True
b.
False
True
1
146
11. To change an element from a block-level element to an inline-element, you use the CSS display
property._________________________
True
1
146
12. The text-align property affects the alignment of text only. _________________________
False – child inline-block elements and text
1
147
13. When you enter a URI, you’re creating a(n) relative link, which is the full and complete address for the target
document on the web._________________________
1
140
Name:
Class:
Date:
14. The a:active style rule must follow the a:hover style rule to be effective. _________________________
15. To change the format of a link in reaction to a user’s interaction with the link, you use a pseudo-
element._________________________
16. To make your code easier to read, you can use a link shortener. _________________________
17. By default, a link opens a new web page in the same window and tab as the home page.
_________________________
18. To reference a hash link with the href attribute of the an element, you simply precede it with a pound
sign. _________________________
19. Although you can link to documents in almost any format from your web pages, it’s important to keep in mind that
Java documents are the only ones that your users are guaranteed to be able to access. _________________________
20. To provide more navigation options, it’s good practice to include a(n) skip link at the top of each web page, which
targets a hash link at the start of the main page content and allows users to bypass navigation.
_________________________
21. To create a link, you enclose the text or other element within an a element using the ____ tag pair.
a.
<a></a>
b.
<close></close>
c.
<end></end>
d.
<b></b>
Name:
Class:
Date:
22. You use the href attribute to specify the name of the web page or other document to link to, which is known as the
____ document.
a.
source
b.
default
c.
recipient
d.
target
d
1
140
23. By convention, an unclicked link is ____.
a.
blue
b.
red
c.
purple
d.
yellow
1
140
24. By convention, a link that a user is in the process of clicking is ____.
a.
blue
b.
red
c.
purple
d.
yellow
b
140
25. By convention, a link to a web page or document that a user has already viewed is ____.
a.
blue
b.
red
c.
purple
d.
yellow
1
140
26. Virtually every website includes a set of links for moving between web pages in the site. This design element is
known as a ____ bar.
a.
navigation
b.
link
c.
help
d.
home
1
140
27. Every web page and other document available on the web can be referred to using a uniform resource locator (URL),
also known as a web ____, which is a standard format for specifying how and where to access a resource on the Internet.
a.
setting
b.
site
c.
address
d.
number
1
140
Name:
Class:
Date:
1
140
28. As part of the URL, the ____ is the way that computers ask for and communicate about the requested document.
a.
style
b.
setting
c.
theme
d.
scheme
d
1
140
29. As part of the URL, the ____ name, such as course.com or mail.Google.com, identifies the general location of the
target document on the web.
a.
scheme
b.
server
c.
style
d.
path
b
1
140
30. As part of the URL, the ____ is the sequence of folders in which the target document is stored on the server.
a.
path
b.
scheme
c.
style
d.
server
1
140
31. A relative link, gives only ____ necessary to locate the target document based on the location of the current web page.
a.
the path
b.
the filename information
c.
Both A and B.
d.
Neither A nor B.
1
142
32. When you enter a URL, you’re creating a(n) ____ link, which is the full and complete address for the target document
on the web.
a.
absolute
b.
relative
c.
parent
d.
child
1
142
33. If the URL you paste contains the & symbol, replace each occurrence with ____ to ensure your code validates
a.
&amd;
b.
&and;
c.
&amp;
d.
&anp;
Name:
Class:
Date:
1
144
34. A link that creates a new email to a specified recipient starts with ______.
a.
sendto:
b.
mailto:
c.
directto:
d.
textto:
b
1
145
35. When a link is activated to send an e-mail, it’s up to the user agent to identify which program should complete the
request. This program is known as the ____ mail client.
a.
default
b.
standard
c.
basic
d.
registered
1
145
36. A ____ is a categorization of a Web page element, but it is based on a relationship or condition of the element at a
given moment, rather than on a static property value.
a.
pseudo-category
b.
pseudo-class
c.
parent-category
d.
parent-class
b
1
148
37. The a:hover style rule must follow the ____ style rule.
a.
a:link
b.
a:visited
c.
Both A and B.
d.
Neither A nor B.
1
150
38. The :focus and ____ can be used interchangeably.
a.
:link
b.
:visited
c.
:hover
d.
:active
1
150
39. You create a hash link by assigning unique names to elements in your web page using the HTML ____ attribute.
a.
object
b.
class
c.
type
d.
id
Name:
Class:
Date:
d
1
154
40. You can combine a relative or absolute link with a hash link to link to a specific element in a different document.
Simply enter the URI or filename for the target document, add a(n) ____ to the end, then add the anchor name.
a.
pound sign
b.
exclamation point
c.
question mark
d.
percentage sign
1
154
41. The ____ format has become an unofficial web standard for documents that require a specific printed format, such as
forms that must be filled out by hand and/or signed, and you can rely on most of your users having the capability to view
and print this format.
a.
DOC
b.
DOCX
c.
TXT
d.
PDF
d
1
141
42. Although you can link to documents in almost any format from your web pages, it’s important to keep in mind that
____ documents are the only ones that your users are guaranteed to be able to access
a.
HTTP
b.
FTP
c.
CSS
d.
HTML
d
1
141
43. Use the ____ value to specify that a linked web page open in a new tab.
a.
_self
b.
_new
c.
_tab
d.
_blank
d
1
152
Figure F-1: A uniform resource locator (URL)
44. Referring to the figure above, the first section showing “https:” is the ____.
a.
scheme
b.
server name
c.
path
d.
family
1
45. Referring to the figure above, the second section showing “mail.google.com” is the ____.
a.
scheme
b.
server name
c.
path
d.
family
b
1
140
46. Referring to the figure above, the third section showing “mail/?shva=1#inbox” is the ____.
a.
scheme
b.
server name
c.
path
d.
family
1
140
47. Referring to the figure above, the href attribute is the name of a(n) ____ file.
a.
Microsoft Word
b.
PDF
c.
Text
d.
HTML
b
1
143
48. Referring to the figure above, the closing tag of the href attribute is ____.
a.
</div>
b.
</a>
c.
</p>
d.
</h2>
b
1
143
140
Name:
Class:
Date:
49. Referring to the figure above, the code shows ____ links.
a.
relative
b.
absolute
c.
parent
d.
child
1
142
50. Referring to the figure above, the entries under the main title for Home, About Us, and Rooms are part of the ____
bar.
a.
tool
b.
status
c.
nav
d.
scroll
1
143
Name:
Class:
Date:
51. Referring to the figure above,the following entries are unlinked text ____.
a.
Home and About Us
b.
Local Weather and Directions
c.
Both A and B.
d.
Neither A nor B.
b
1
143
52. Referring to the figure above, the link that has been visited is ____.
a.
Home
b.
About Us
c.
Reservations
d.
Local Weather
1
143
53. Referring to the figure above, a linked text entry is ____.
a.
About Us
b.
Rooms
c.
Reservations
d.
All of the above.
d
1
143
Case-Based Critical Thinking Question
CJ is developing a new website blogging about cutting-edge technologies for people with special needs. He wants to make
the site accessible and user friendly.
54. CJ knows that some of the visitors who frequent his website will use screen readers. To allow these users to bypass the
navigation, he will use a skip link, He wants to position the skip link on the right but first he must use the ____ property.
a.
display
b.
right
c.
left
d.
nav
1
156
Critical Thinking
55. CJ wants to link to articles in his website. He has assigned specific values for each ID attribute. To link to that ID
attribute, CJ must use a(n) _____ before the ID value in his href statement.
a.
*
b.
#
c.
!
d.
<
b
1
154
Critical Thinking
Name:
Class:
Date:
56. CJ is concerned that once users are at the end of the article, they might have difficulty navigating to the top of the
page. To solve this problem, CJ assigns a(n) _____ to the page’s main heading and then creates a link to that heading at
the end of each article.
a.
hash tag
b.
short link
c.
ID value
d.
_self tag
Critical Thinking
Case-Based Critical Thinking Question
Shayla is creating an online newsletter for her gymnastics team. She is learning about pseudo-class states for linked
elements, and wants the linked states to match the school’s colors of blue and yellow.
57. Shayla wants links in the____ state, meaning they have not been clicked, to be blue.
a.
a:link
b.
a:visited
c.
a:active
d.
a:new
Critical Thinking
58. Shayla knows that previously viewed links are in the ____ state, and she sets their color to yellow.
a.
a:link
b.
a:visited
c.
a:active
d.
a:hover
Critical Thinking
Name:
Class:
Date:
59. In the figure above, the text “Skip navigation” is considered to be a(n) ________________ link.
60. A(n) ________________, more commonly known as a link, is text or another web page element that users can select
to open another document containing related content.
61. A(n) ________________ consists of three parts: the scheme, the server name, and the path.
62. Email ________________ continually explore web pages looking for email addresses that in turn receive spam
emails.
Name:
Class:
Date:
63. To create a rollover effect, which changes the appearance of the affected object when the mouse is over it but not
selecting it, use the ________________ pseudo-class.
64. To make your code easier to read, you can use a link ________________ such as bit.ly or tinyurl.com, which are web-
based services that transform large, unwieldy links into manageable URLs.
65. Sometimes it’s useful to link to locations within the current web page. Instead of linking to URLs or filenames, you
link to named locations, known as ________________, within the current document.
66. Briefly define the following terms and include how they are related to each other: URL, web address, scheme, HTTP,
HTTPS, server name, and path.
67. If communication from your users is important, name two alternatives to using mailto links.
68. Name and describe the four pseudo-class states for linked elements.
Name:
Class:
Date:
Match each commonly used CSS display property value with the description of how it is rendered.
a.
block
b.
inline
c.
inline-block
d.
none
REFERENCES:
147
69. Box that does not expand to the full width of its parent
POINTS:
1
70. Content that does not expand to the full width of its parent
b
POINTS:
1
71. Box occupying the full width of its parent element
POINTS:
1
72. Docment rendered as if element does not exist
ANSWER:
d
1
73. You need to clear the ______ to reset the appearance of links to their default :link state.
ANSWER:
browser history
1
REFERENCES:
155
74. When you want to link to a web page on another web site, you must use a(n) ______ link.
absolute
POINTS:
1
144
75. A(n) _______ is a generated URL that uses especially short domain names and specially crafted paths to represent
larger unwieldy links as manageable links.
POINTS:
1
151
Critical Thinking
Name:
Class:
Date: