25 Answers to Review Questions. “Digital Media Primer” Yue-Ling Wong
Chapter 8
1. HTML documents are ______.
A. text files
2. For the URL: http://www.schoolname.edu/departments/art/index.html :
i. The domain name of the Web server is ______.
ii. This URL is a Web address of a file named ______.
iii. This file is located in the folder named ______, which is inside another folder named ______.
3. What are the new key features of HTML5 that are overviewed in this chapter?
4. Which of the following is correct about HTML5?
A. Three doctypes: Strict, Transitional, and Frameset
B. Only one simplified doctype declared like this: <!DOCTYPE HTML>
5. Which of the following is correct about cases for the tag and attribute names in HTML5?
A. No restriction on cases
B. All lowercase
C. All uppercase
D. Capitalized
6. Which of the following is correct about the use of quotation marks for the attribute value in HTML5?
7. Which of the following is correct about the use of end tags in HTML5?
A. Not required
B. Required
8. Which of the following is correct character encoding declaration in HTML5?
A. <meta http-equiv= = =utf- >
B. <meta charset= >
9. ______ are markup codes in an HTML document that tell the Web browser how to format the text when
displaying it.
A. Attributes
B. Tags
10. In the HTML code: <p>This is a paragraph.</p>
<p> is the ______ , and </p> is the ___ This is a paragraph
A. element content; start tag; end tag
B. element content; end tag; start tag
C. start tag; end tag; element content
D. start tag; element content; end tag
E. end tag; start tag; element content
F. end tag; element content; start tag
11. Fill in the correct start tags and end tags to create a basic HTML document.
< ______ >
26 Answers to Review Questions. “Digital Media Primer” Yue-Ling Wong
< ______ >
< ______ >This is the page title.< ______ >
< ______ >
< ______ >
This is the content of the Web page.
< ______ >
< ______ >
12. Describe briefly how XHTML is different from HTML in terms of each of the
following:
i. Tag pairing
ii. Cases of tags
iii. Use of quotation marks for attribute values
iv. Boolean attributes
v. DOCTYPE declaration
13. The ______ tag is used to create a line break to force a new line without starting a new paragraph. By
default, the line created using this tag has ______ -line spacing.
15. Fill in the blanks for the HTML code below to create a link to your favorite Web site.
Use a valid URL.
< ______ ______ = ” ______ “>My Favorite Web site< ______ >
16. Fill in the blanks for the HTML code below to embed an image called logo.jpg on a Web page. Suppose
logo.jpg is in the same folder as the HTML document that embeds it.
< ______ ______ = ” ______ ” ______ >
17. Fill in the blanks for the HTML code to create a list as shown.
2. Heat butter and oil in a large saucepan.
3. Cook the shrimp for 10 minutes.
< ______ >
< ______ >Preheat oven to 450 degrees.< ______ >
< ______ >Heat butter and oil in a large saucepan.< ______ >
< ______ >Cook the shrimp for 10 minutes.< ______ >
< ______ >
18. Fill in the blanks for the HTML code to create a list as shown.
Elephants
Tigers
Frogs
< ______ >
< ______ >Elephants< ______ >
< ______ >Tigers< ______ >
< ______ >Frogs< ______ >
< ______ >
19. Fill in the blanks for the HTML code to create a table as shown.
Elephants Tulips
Tigers Roses
<table>
<tr>
27 Answers to Review Questions. “Digital Media Primer” Yue-Ling Wong
<td> ______ </td>
< ______ >
< ______ >
21. For the site shown in Figure 8.12 , to embed the image logo.png on the homepage index.html (in the my-site
folder), the document-relative file path is ______.
22. For the site shown in Figure 8.12 , to embed the image logo.png on the Web page french-roast.html , the
document-relative file path is ______.