Professional Documents
Culture Documents
Chapter 3 – Creating Web Pages with Links, Images, and Embedded Style Sheets
MULTIPLE CHOICE
1. Using ____, a Web site’s visitors can move from one page to another, and view information in any
order.
a. indices c. attributes
b. key values d. hyperlinks
ANS: D PTS: 1 REF: HTML 88
3. With Internet Explorer, the default color for an active link ____.
a. is red c. has no color
b. is purple d. varies in color
ANS: D PTS: 1 REF: HTML 91
6. An easy way to provide contact information is to include a(n) ____ link on a Web site’s home page, as
well as on other pages in the Web site.
a. connection c. e-mail
b. user d. video
ANS: C PTS: 1 REF: HTML 96
7. A Web developer should design the Web site in such a way that the links from one Web page to
another are apparent and the ____ is clear.
a. fluidity c. concatenation
b. navigation d. indexing
ANS: B PTS: 1 REF: HTML 97
8. If the text elements vary across paragraphs, a(n) ____ style is good to use.
a. inline c. embedded
b. dynamic d. external
ANS: A PTS: 1 REF: HTML 101
9. If you want all of the text in a Web page to be the same, a(n) ____ stylesheet is appropriate.
a. embedded c. inline
b. dynamic d. external
ANS: A PTS: 1 REF: HTML 101
10. If text is common across more than one Web page, a(n) ____ style sheet should be used.
a. bullet-style c. external
b. bullet-shape d. disc
ANS: C PTS: 1 REF: HTML 101
12. With an e-mail link, the link text used typically is the ____.
a. e-mail address c. domain name of the e-mail server
b. Web protocol d. e-mail password
ANS: A PTS: 1 REF: HTML 103
13. The ____ tag is used to create anchors for links to another page in the same Web site, to a Web page in
an external Web site, within the same Web page, and for e-mail links.
a. <a> c. <ul>
b. <ol> d. <an>
ANS: A PTS: 1 REF: HTML 103
14. The ____ attribute of the <a> tag indicates a forward relationship from the current document to the
linked document.
a. rel c. rev
b. fwd d. ahead
ANS: A PTS: 1 REF: HTML 103
15. The ____ attribute of the <a> tag specifies what kind of content a linked page or file is, so as to help a
browser determine if it can handle a specific kind of resource.
a. resource c. type
b. source d. content
ANS: C PTS: 1 REF: HTML 104
16. A text link without the ____ tag will not display correctly in the browser.
a. </ br> c. </a>
b. </p> d. </tl>
ANS: C PTS: 1 REF: HTML 104
18. ____ paths specify the location of a file, in relation to the location of the file that is currently in use.
a. Absolute c. Located
b. Relative d. Baseline
ANS: B PTS: 1 REF: HTML 109
19. A valid value for the font-size property is any of the following EXCEPT ____.
a. an actual numeric size c. a percentage
b. the value medium d. a hexadecimal value
ANS: D PTS: 1 REF: HTML 110
20. The font-weight property takes all of the following values EXCEPT the ____ value.
a. oblique c. normal
b. bolder d. lighter
ANS: A PTS: 1 REF: HTML 110
21. The ____ tags decrease the font size in comparison to the surrounding text.
a. <low> </low> c. <decr> </decr>
b. <less> </less> d. <small> </small>
ANS: D PTS: 1 REF: HTML 111
24. A(n) ____ style sheet is a separate document with a .css extension.
a. inline c. extended
b. embedded d. external
ANS: D PTS: 1 REF: HTML 112
25. In this embedded style
<style type= "text/css">
<!--
h1 {font-family: Garamond;
font-size: 32pt}
-->
</style>
the h1 element is the ____.
a. declaration c. declamation
b. anchor d. selector
ANS: D PTS: 1 REF: HTML 113
27. Which of the following is NOT a pseudo-class that can be used when applied to the anchor or link
selector?
a. link c. visited
b. focus d. hover
ANS: B PTS: 1 REF: HTML 115
28. A pseudo-class is attached to a ____ to specify a state or relation and give the Web developer more
control.
a. declaration with an ampersand c. selector with a colon
b. declaration with an @ sign d. selector with a period
ANS: C PTS: 1 REF: HTML 115
29. The code ____ eliminates completely the underline on text links.
a. a:hover text-underline: none c. a:active text-underline: none
b. a:hover text-decoration: blank d. a:hover text-decoration: none
ANS: D PTS: 1 REF: HTML 116
30. The ____ tags create a container into which a user can add an inline style.
a. <div></div> c. <p></p>
b. <span></span> d. <style></style>
ANS: B PTS: 1 REF: HTML 117
31. A(n) ____ path specifies the exact address for the file to which you are linking or displaying a graphic.
a. absolute c. relative
b. indexed d. baseline
ANS: A PTS: 1 REF: HTML 107
32. To make a style of one paragraph to be different from the style of others, you can define specific
elements of an HTML file as a category, or a(n) ____.
a. area c. class
b. style set d. index
ANS: C PTS: 1 REF: HTML 126
33. The part of the style statement that identifies the page elements is called the ____.
a. anchor c. declaration
b. declamation d. selector
ANS: D PTS: 1 REF: HTML 126
34. The tag and the class name are separated by a ____.
a. colon c. period
b. number sign d. comma
ANS: C PTS: 1 REF: HTML 127
35. To establish a class in which text associated with the class name "footer" displays in a 9-point blue
font, you would add a style statement like this one: ____.
a. class.footer {color: blue;
font-size: 9pt}
b. footer {color: blue;
text: 9pt}
c. p.footer {color: blue;
text-size: 9pt}
d. p[footer] {color: blue;
point: 9pt}
ANS: C PTS: 1 REF: HTML 127
36. Once you have added a style statement with the class name "footer" you can display text in the style of
that class using the ____ tag.
a. <p.class.footer> c. <p>footer</p>
b. <p class="footer"> d. <p.footer>text here</p>
ANS: B PTS: 1 REF: HTML 127
37. If you find a graphic you want to use, right-click the image, click ____ on the shortcut menu, and then
save the image to your computer.
a. Store graphic c. Save JPEG
b. Archive JPEG d. Save picture as
ANS: D PTS: 1 REF: HTML 128
38. The ____ of an image impacts how long it takes an image to load.
a. size c. subject
b. complexity d. both a and b
ANS: D PTS: 1 REF: HTML 130
39. To create a(n) ____ version of an image, the image can be resized to a smaller size in a paint or image-
editing program and then saved with a different file name.
a. thumbnail c. indexed
b. pixelated d. master
ANS: A PTS: 1 REF: HTML 130
40. To end right-aligned text wrap, enter the ____ tag where the text should stop wrapping to the right.
a. <br style=“clear: right” /> c. <br nowrap=“right” />
b. <br stop=“right” /> d. <br end=“right” />
ANS: A PTS: 1 REF: HTML 134
MULTIPLE RESPONSE
2. A well-designed Web page provides a way for visitors to contact the person responsible for ____.
a. maintaining the Web site
b. designing the Web site
c. maintaining the Web server
d. addressing customer questions and comments
ANS: A, D PTS: 1 REF: HTML 96
4. The <pre> tag sets enclosed text as preformatted material, preserving ____.
a. images c. spaces
b. line breaks d. punctuation
ANS: B, C PTS: 1 REF: HTML 111
MODIFIED TRUE/FALSE
1. The change of a mouse pointer to a(n) hourglass when moved over text, for example, indicates that a
link is available from the text. _________________________
2. With Internet Explorer, the default color for a visited link is red. _________________________
ANS: F, purple
PTS: 1 REF: HTML 91
3. With Internet Explorer, the default color for a normal link that has not been clicked is purple.
_________________________
ANS: F, blue
4. If you want to change the colors of text links to override the browser defaults, you can designate those
changes in the anchor <a> or <html> elements using an embedded or external style sheet, or by using
an inline style. _________________________
ANS: F, body
5. If you determine that you can effectively turn the underline off on a link, you can change the underline
attribute to none. _________________________
ANS: F, text-decoration
TRUE/FALSE
1. Using hyperlinks, a Web site visitor can move from one page to another, to view information in any
order.
2. When using text links on a Web page, it is recommended that you use the phrase “Click here.”
4. Web pages rarely include links to connect one Web page to another page within the same Web site.
5. Links within a Web page allow visitors to move quickly from one section of the Web page to another.
6. With an inter-page link, you insert the ampersand before the target id to indicate that you want to link
to a specific section of a Web page, not necessarily the top of the page.
8. The home page should indicate clearly what links the visitors should click to move from one Web page
on the Web site to another.
9. It is unusual for Web developers to utilize images to call attention to a Web page.
10. Using the same graphical image on all marketing materials is a good way to provide a consistent visual
and brand message to customers.
11. The alt attribute provides information about the purpose of an image for assistive technology such as
screen readers.
12. Identifying the width and height attributes of an image can compromise page loading time.
13. The <a> and </a> tags used to create a text link to a Web page within the same Web site are used to
create a link to a Web page in another Web site.
15. To ensure that text appears as bold font, you would enclose it between a start <b> and end </b> tag.
16. In practice, the <strong> and <b> tags usually have the same result when the Web page displays.
17. A good technique for long Web pages is to allow visitors to link back to the top of the Web page easily
from several places on the page.
21. The Web contains many Web sites with thousands of image files on countless subjects that can be
downloaded free and used for noncommercial purposes.
22. Regardless of where you get an image, always be aware of copyright rules and regulations.
23. If a visitor clicks a thumbnail image to view the larger image, he or she can use the Return button on
the browser’s Standard toolbar to return to the original Web page displaying the thumbnail image.
24. To create links within the same Web page, the targets for the links first must be created.
25. A link target is intended to mark a specific area of the Web page, to which a link can be directed.
COMPLETION
1. When a visitor clicks a(n) ____________________ link, it automatically opens a new message in the
default e-mail program and inserts the appropriate contact e-mail address in the To field.
ANS: e-mail
2. When the browser recognizes a(n) ____________________ URL in a clicked link, it automatically
opens a new message in the default e-mail program and inserts the appropriate contact e-mail address
in the To field.
ANS: mailto
3. A(n) ____________________ describes the location (folder or external Web site) where the files can
be found.
ANS: path
ANS: deprecated
5. The <b> </b> tags are a(n) ____________________ style tag that displays text as bold.
ANS: physical
ANS: blockquote
7. The <____________________> tag is a logical style tag that displays text with emphasis and usually
appears as italicized.
ANS: em
8. The <____________________> tag is a physical style tag that displays text as italicized.
ANS: i
9. The <____________________> tag is often used for text in column format in another document
pasted into HTML code.
ANS: pre
ANS: subscript
ANS: superscript
12. ____________________ style tags allow a browser to interpret the tag based on browser settings,
relative to other text on a Web page.
ANS: Logical
13. The <h2> heading tag is a(n) ____________________ style that indicates that the heading text should
be larger than regular text but smaller than text formatted using an <h1> heading tag.
ANS: logical
14. The <strong> </strong> tags are a(n) ____________________ style, which indicates that the text
should have a strong emphasis, and which most browsers interpret as displaying the text in bold font.
ANS: logical
15. ____________________ style tags specify a particular font change that is interpreted strictly by all
browsers.
ANS: Physical
16. In HTML, a(n) ____________________ is a special instruction to the browser to specify how the Web
page is displayed.
ANS: tag
17. In the case of a link within a Web page, the <a> tag specifies a(n) ____________________, or named
location, in the same file.
ANS: target
ANS: thumbnail
19. The <br style=“clear: ____________________” /> tag clears all text alignments.
ANS: both
20. To create links within the same Web page, the ____________________ for the links first must be
created.
ANS: targets
MATCHING
Identify the letter of the choice that best matches the phrase or definition.
a. logo f. text-decoration
b. bold g. italicized
c. floating h. physical
d. thumbnail i. logical
e. clip art j. rel
1. This kind of image on a company’s Web site is the same image on the company letterhead and
business cards.
2. The <em> </em> tags are an example of this kind of style tag.
3. The <i> </i> tags are an example of this kind of style tag.
4. Text tagged with the <em> </em> tags usually appear this way.
5. Text tagged with the <strong> </strong> tags usually appear this way.
6. Allows an element to move to the side indicated in the associated statement.
7. Using this kind of image gives a visitor the opportunity to decide whether to view the full-sized image.
8. Property that allows text to be underlined or blink, for example.
9. The value of this <a> attribute is a link type.
10. Many applications come with this, which can be used on Web pages.
ESSAY
1. Discuss in detail two formatting suggestions that will help you call attention to important topics on a
Web page without overpowering the page.
ANS:
• Effectively utilize graphics. An important part of Web development is the use of graphics to call
attention to a Web page. Generally, companies utilize the same logo on their Web site as they use on
print material associated with the company, such as business cards and letterheads. Using the same
graphical image on all marketing materials, including the Web site, is a good way to provide a
consistent visual and brand message to customers.
• Utilize headings that connect to the graphics. In many cases, companies use the logo image as the
main heading on their home page, as opposed to using an <h1> heading. It is sometimes good to
coordinate the color of the headings and graphics contained on the Web page to the logo. This can
bring attention to the company logo image, and it makes the Web page look cohesive with
coordinating colors. Heading size standards should generally be followed from h1 (the largest) to h6
(the smallest).
2. Discuss the following statement in detail: Planning how and where to use the four types of links is an
important part of Web page design.
ANS:
• Identify how to link from the home page to another page in the same Web site. Linking to another
Web page in the same Web site is often done with text links. When determining what words to use,
make sure that the text links are clear and easy to understand. Using a phrase such as “click here” is
not one that clearly identifies where the link will go. Choosing words such as “sample photographs”
tells the Web site visitor to click that link if they want to see a sample photographs.
• Use an e-mail link on the home page. A good standard practice is to include an e-mail link on the
home page. Again, using words such as “click here” are not as effective as using a company’s actual e-
mail address as the e-mail link text.
• Determine external links for the home page. Visitors to a Web site might want additional information
on a topic, so a link also can be included on the home page. Linking to an external Web site (i.e., one
that is outside of the boundaries of the current Web site) is appropriate to provide additional
information. Again, it is important to select words or phrases that make sense for that link.
• Use internal links on long Web pages. Another good standard practice is to include links within a
Web page when the page is long (i.e., when you have use the scroll bar or to press the PAGE DOWN
key several times to get to the end of the Web page). Internal links help visitors navigate more easily
within long Web pages. Also consider using links to help the visitor easily return back to the top of a
long Web page.
3. Explain how to define unique styles for normal, visited, and active links. Also include an explanation
of the hover pseudo-class, including a definition and the general syntax of a pseudo-class in your
response.
ANS:
You also can define a unique style for normal, visited, and active links by creating three separate style
statements with a:link, a:visited, and a:active as the selectors. The last style statement uses the a:hover
selector to define the style of a link when the mouse pointer points to, or hovers over, a link. In this
statement, you use a pseudo-class (hover) to have more control over the anchor (link) element. A
pseudo-class is attached to a selector with a colon to specify a state or relation to the selector to give
the Web developer more control over that selector. The format to use with a pseudo-class is
entered in the form:
selector:pseudo-class { property: value; }
with a colon between the selector and the pseudo-class. There are four pseudo-classes that can be used
when applied to the anchor or link selector:
CASE
Patricia has used the <a> tag for a long time in her introductory-level work creating Web pages for
family and friends. However, it was not until she took a course in HTML that she realized that there
were other attributes for the <a> tag of which she could make use.
1. Patricia’s instructor explains to her that if she has Web pages that fall into a linear series (e.g., project
1, project 2, project 3), she can use one of the <a> tag attributes to help her organize those
relationships. Which of the following is a valid attribute-value pairing of which Patricia could make
use?
a. fwd=“this” c. ahead=“link”
b. rel=“next” d. Any of the above
ANS:
B
2. Patricia’s instructor has also alerted her that she can help support a browser in its work by flagging the
content type of a given linked page, in order to help the browser determine if it can handle that
resource type. Which of the following is NOT an example of a value that Patricia’s instructor gives her
to illustrate how the type attribute works?
a. image/html c. video/quicktime
b. application/java d. text/css
ANS:
A
To this point, Javier’s Web page development work has been limited to creating individual pages or
very small sites for his own use but he has just started a job in which he will be called upon to develop
more sophisticated sites. As such, the HTML code and graphical images in the sites on which he will
work will be separated into different folders, increasing the complexity of the file structure. For this
reason, he asks his friend Brigette to give him a quick primer on absolute and relative paths so he can
make best use of these concepts.
3. Which of the following is NOT a true statement that Brigette can make to Javier?
a. The beginning location for file paths is c. If the root folder must change for some
known as root. reason, the use of relative paths means that
you do not have to change all the addressing.
b. You can use either an absolute or relative d. It is better to use absolute paths for
path when identifying the location of files. flexibility wherever feasible.
ANS:
D
4. Brigette thinks that it is best to give Javier a real-world example in order to solidify his understanding
of these concepts. Assume that an image called tflogo.gif is stored in the Images subfolder and a Web
page called offerings.html is stored in the HTMLcode subfolder. Which of the following relative path
structures could the offerings.html page use to refer to the tflogo.gif file?
a. \images\tflogo.gif c. \HTMLcode\Images\tflogo.gif
b. \Images\tflogo.gif d. It is not possible to make the reference to
this image without the use of an absolute
path.
ANS:
B