Test Bank for The Web Wizard’s Guide to HTML

Chapter One

Short Answer

1.What is the World Wide Web (WWW)?

Answer: A large collection of public documents distributed over a network of millions of computers.

2.What is a web server?

Answer: A computer that stores documents and makes them available (serves them up) via a network.

3.What do you need to view a web page?

Answer: An Internet-ready computer, an Internet access account, and a web browser

4.Define the term “hyperlink”.

Answer: A clickable element (i.e. text or an image) on a web page that takes you to a new page or a different location on the current page.

5.What is the Internet?

Answer: A large global network of thousands of smaller computer networks and millions of individual computers.

6.What does HTTP stand for?

Answer: HyperText Transfer Protocol

7.In the following URL, identify the web server, directory path and file name:

Answer: The web server is the directory path is wwwboard and the file name is index.html.

8.Explain what it means to download a file.

Answer: A file is moved from a remote computer to a local computer.

9.Why does bandwidth matter?

Answer: The slower the bandwidth, the longer it will take to download a file.

10.What does HTML stand for?

Answer: HyperText Markup Language

11.What characters identify HTML tags from ordinary text?

Answer: < and > (located above the comma and period on the keyboard)

12.What character differentiates a closing HTML tag from an opening one?

Answer: / or slash (located below the question mark on the keyboard)

13.Why should we use lowercase lettering when creating HTML tags?

Answer: Both XML and XHTML require lowercase so it’s good to get prepared for these higher level markup languages now.

14.Why should you avoid using MS Word to create web pages?

Answer: Unlike using simple text editors like NotePad or SimpleText, you have to go through four extra steps in order to make sure Word does not mess up your HTML file (see page 10).

15.What is a DTD statement?

Answer: A Document Type Declaration tells validation services which version of HTML (according to W3C) you are using.

True-False

1.A web site is one web page written by one person.

Answer: False

2.DNS stands for Domain Name Server.

Answer: True

3.Text files are recognized as web pages when their file names end with .html or .htm.

Answer: True

4.The title element should be placed within the body element.

Answer: False

5.A browser-specific extension is always good to use.

Answer: False

Multiple Choice

1.The person who maintains a web site is called a

a)web server

b)web site

c)web master

d)web browser

Answer: c) web master

2.What does URL stand for?

a)Uniform Resource Locator

b)Uniform Resource Language

c)United Resource Language

d)United Relative Locator

Answer: a) Uniform Resource Locator

3.The web browser’s cache

a)contains extra features to install.

b)saves a copy of web pages for faster viewing the next time it’s called.

c)should never be used.

d)is the cost of the browser

Answer: b) saves a copy of web pages for faster viewing the next time it’s called.

4.What tag set opens and closes a web page?

a)<web>, </web>

b)<page>, </page>

c)<webpage>, </webpage>

d)<html>, </html>

Answer: d) <html>, </html>

5.What is the W3C?

a)Has the authority to set industry standards

b)World Wide Web Consortium

c)Establishes new standards for HTML

d)All of the above

Answer: d) All of the above

Chapter 2

Short Answer

1.Explain the difference between the title element and the heading element.

Answer: The title element controls the browser window’s title bar while the heading element creates text that can be used to signal parts of the web page such as chapter titles, section headings and subsections.

2.What are comment tags and how are they written?

Answer: Comment tags contain notes that the person writing the HTML wants to include about the code. They are only visible when looking at the source or HTML code. A comment tag begins with <!-- and ends with -->.

3.In HTML tags, what are attributes?

Answer: Attributes help you fine tune the HTML tag by adding alignment, size and so forth. If the HTML tag can be considered a verb, the attribute would be the adverb.

4.How does the paragraph element signal on the web page the start of a new paragraph?

Answer: A blank line.

5.How is the <br> tag different from the <p> tag?

Answer: No blank line and no closing <br> tag.

6.What does the <hr> tag do?

Answer: It inserts a horizontal line or rule across the page.

7.What is the difference between a “safe” font and a “somewhat risky” font?

Answer: Somewhat risky fonts are not available on all web browsers and computers.

8. What are the safe serif fonts?

Answer: Times New Roman (Windows) and Times (Mac)

9.What does it mean if a tag is deprecated?

Answer: The tag is being phased out by W3C and the major web browsers.

10. What’s the difference between presentational elements and informational elements?

Answer: Informational elements are more abstract while presentational elements are more display based.

11. If you want to create a bulleted list, which tags do you use to start and end the list?

Answer: <ul> and </ul>

12.Why would you use the dictionary list element rather than the other list elements?

Answer: When you have list items that require more detailed descriptions.

13. How do you create a nonbreaking white space?

Answer: &nbsp;

14.What will happen if you insert three line break elements and then add more text?

Answer: There will be three blank lines before the text appears.

15. If you want your text to have the exact spacing and line breaks you type in, which HTML tags should you use?

Answer: <pre> and </pre>

True-False

1.You can use a HTML attribute by itself.

Answer: False

2.<h1> is for creating the largest heading size.

Answer: True

3.Like the <ol> and <ul> tags, the <dl> tag must be used with <li> tags to create the list.

Answer: False

4.Special characters are used to get things like foreign language characters and math symbols to appear on a web page.

Answer: True

5.The block quote element leaves the text exactly as it is typed.

Answer: False

Multiple Choice

1.In the tag <h1 align=”center”>, which is the attribute name and which is the attribute value?

a)The attribute name is h1, the attribute value is center.

b)The attribute name is align, the attribute value is center.

c)The attribute name is center, the attribute value is align.

d)The attribute name is align, the attribute value is h1.

Answer: b) The attribute name is align, the attribute value is center.

2.Why should you always use a closing paragraph tag?

a)The paragraph won’t appear if you don’t.

b)Only parts of the paragraph will appear.

c)Your web page will be one giant paragraph.

d)XML and XHTML require closing tags.

Answer: d) XML and XHTML require closing tags.

3.What does CSS stand for?

a)Colorful Style Sheets

b)Creative Style Sheets

c)Cascading Style Sheets

d)Computer Style Sheets

Answer: c) Cascading Style Sheets

4.David wants to make a numbered list on his web page. Which HTML tags would he use?

a)<ul> and </ul>

b)<#> and </#>

c)<nl> and </nl>

d)<ol> and </ol>

Answer: d) <ol> and </ol>

5.What will be the result on the web page if your HTML includes the following code:

<p</p<p</p<p</p>

a)One blank line

b)Three blank lines

c)Six blank lines

d)Nothing

Answer: a) One blank line

Chapter 3

Short Answer

1.What is hexademical notation?

Answer: A coding system in base 16 that is used by web browsers to describe colors.

2.What tag and attribute do you use to set the background color on a web page?

Answer: body and bgcolor

3.Why should you always set your background color?

Answer: While the default background for Internet Explorer is white, it is gray for Netscape.

4.What does RGB stand for?

Answer: Red, green, blue.

5.When a background image is tiled, what happens?

Answer: It is repeated over and over to fill up the window space.

6.What happens when you use both a background color and image?

Answer: The background color appears first and then the image appears when it is loaded.

7.What’s an inline image?

Answer: An image that is treated as a single, alphanumeric character, just like a character you would type on a keyboard.

8. Why is it important to always use the alt attribute with the img tag?

Answer: Not all browsers display graphics. This is especially important for the visually impaired users.

9.If I use the align=”left” attribute with my image element, what will happen to the text I place after the image?

Answer: It will flow around the image.

10. Why should you always include the width and height attributes inside the img tag?

Answer: The web browser will know what size the images are going to be, reserve space for them and place the text on the reserved space. Thus users can read the text while the images are loading.

11. What is aspect ratio and why should it be preserved when scaling images?

Answer: Aspect ratio is the relationship of the height to the width. If it is not kept the same as the original, the image will be distorted.

12.If you want the web browser to go up one subdirectory from the one you are currently using, what do you put before the file name?

Answer: ../ or <img src=”../cat.gif”>

13. Why should we worry about bandwidth limitations?

Answer: More than 95% of all home computer users connect to the Internet via telephone modems.

14.What is the 1 x 1 pixel trick your book discusses?

Answer: You preload images at the bottom of an early page so that they will already be loaded when users move on to other pages.

15. Why should you be careful about using the 1 x 1 pixel trick?

Answer: It slows down the loading of the earlier pages and it only helps if you guess right on which page the user is going to next.

True-False

1.You can add a background to your web page by adding the bg attribute to your body tag.

Answer: False

2.You can use any image you find on the Web without asking permission.

Answer: False

3.If you want text to stop flowing around an image, you can use <br clear=”center”>.

Answer: True

4.If you don’t want to worry about relative paths, just keep all of your HTML and image files in a single directory.

Answer: True

5.A progressive JPEG is about the same as an interlaced GIF.

Answer: True

Multiple Choice

1.How many web-safe colors are there?

a)216

b)256

c)1,000,000

d)16,777,216

Answer: a) 216

2.Which image file formats are okay for using on a web page?

a)GIF

b)JPEG

c)BMP

d)All of the above

e)Only a) and b)

Answer: e) Only a) and b)

3.Which tag is correct for scaling an image?

a)<img src=”cat.gif” scale=”50x50” alt=”My cat”>

b)<img src=”cat.gif” scale=”50”,”50” alt=”My cat”>

c)<img src=”cat.gif” width=50 height=50 alt=”My cat”>

d)<img src=”cat.gif” alt=”My cat”>

Answer: c) <img src=”cat.gif” width=50 height=50 alt=”My cat”>

4.What is an interlaced GIF?

a)An image of interwoven lace.

b)A special background only image.

c)A clickable image.

d)An image that produces its displays in four passes.

Answer: d) An image that produces its displays in four passes.

5.Which of the following attributes is optional when using the image element?

a)align

b)alt

c)height

d)width

Answer: a) align

Chapter 4

Short Answer

1.What does an absolute URL link to verses a relative Web server?

Answer: An absolute URL links to a page on a different Web server whereas a relative URL links to a page on the same Web server.

2.What does a named anchor link to?

Answer: A different location on the same Web page.

3.In this hyperlink, which part is the link label:

<a href=" Radio Books</a>?

Answer: Talk Radio Books

4.In the hyperlink above, which part is the link destination?

Answer: =

5.Why shouldn't you use the word "here" as a link label?

Answer: Some search engines use link labels to index Web pages.

6.How do you get rid of the blue border that shows up around images when they are made links?

Answer: Add the attribute "border=0" to the img tag.

7. Why are relative links more portable than absolute links?

Answer: Web pages with relative links can be moved to a new Web server and still be operational. Absolute links would need to be modified after the move.

8.How can you create a link that will open up a new window?

Answer: Use the target attribute.

9. When would you use named anchors?

Answer: On very long Web pages.

10. Why should you not link to someone else's named anchor?

Answer: The other Web page author could change the anchor without you knowing.

11.What is an automated link checker?

Answer: A utility that helps Web author to make sure that their hypertext links are all valid.

12. Can hypertext links be checked without being on the Internet?

Answer: Only relative links within your own web pages can.

13.What is an application service provider (ASP)?

Answer: A commercial service that offers Web-based computing capabilities to its subscribers.

14. Why is it important to check your links?

Answer: Visitors to your web pages will become frustrated if your links don't work on a regular basis. This is especially true with navigation links within your own pages.

15.What is a virtual domain hosting service?

Answer: It is a service that lets you obtain space on a Web server under your own personal domain name.

True-False

1.A link label is always an URL.

Answer: False

2.It's very important to remember to close the anchor tag (</a>).

Answer: True

3.You can usually omit the file name "index.html" when creating an absolute link.

Answer: True

4.Forcing linked page to open in a new window is always a good idea.

Answer: False

5.When you get a "404 - Page Not Found" error, the page may have moved or you may have typed the URL in wrong.

Answer: True

Multiple Choice

1.What type of HTML link is this:

<a href=" Radio Books</a>

a)Absolute URL

b)Relative URL

c)Named Anchor

d)Relative Anchor

Answer: a) Absolute URL

2.What the attribute "href" stand for in the anchor tag?

a)hyper reference

b)hypertext reality

c)hypertext reference

d)Nothing - it's a nonsense word.

Answer: c) hypertext reference

3.What does the error message "404 - File Not Found" mean?

a)The server name is valid.

b)The Web page could not be found.

c)Both A and B.

d)Neither A or B.

Answer: c) Both A and B.

4.Which of the following is a link to a named anchor?

a)<a href="books.html">books</a>

b)<a href="#books">books</a>

c)<a href="

d)<a name="books">books</a>

Answer: b) <a href="#books">books</a>

5.Which code is the proper way to link to a named anchor on another page within the same Web site?

a)<a name="stern">Stern</a>

b)<name="stern">Stern</a>

c)<a href="books.html" name="stern">Stern</a>

d)<a href="books.html#stern">Stern</a>

Answer: d) <a href="books.html#stern">Stern</a>

Chapter 5

Short Answer

1.What are the two most commonly used file formats for Web graphics?

Answer: GIF and JPEG

2.What type of images is the GIF file format best for?

Answer: Line art, cartoons and simple images.

3.Why doesn't the bitmap (BMP) file format belong on the Web?

Answer: Not all Web browsers can handle them and the files are much bigger than other image file formats.

4.What happens when a color is dithered?

Answer: Pixels of other colors are mixed to create the illusion of a color that's not actually part of the available color palette.

5.What is an adaptive palette?

Answer: A reduced color palette based on the most commonly used colors.

6.What is ghosting?

Answer: Noise in a JPEG version of a graphic that results in a blurry-looking image.

7.Why is it important to keep graphics files as small as possible?

Answer: So the Web pages will load quickly.

8. If an image format is lossy, what does that mean?

Answer: The compression technique used by the format trades off image quality for greater savings in memory.