Portfolio Title




 

 

Student Portfolio >> Index >> Website Scripting >> HTML Questions

Answers to the Chapter Questions in "HTML for the WORLD WIDE WEB 5th Edition (Student Edition) by Elizabeth Castro

 

 

Chapter 1:

 

Multiple Choice:

Q1: Both C and B are correct. B) is the standard for HTML, C) for XHTML

Q2: B) Turquoise

Q3: B) <a href=”aliceatwork.html”>

Q4: D) Plugin

Q5: B) Converts them to a single space

 

Fill-in-the-blank:

1. http://www.mydomain.com is a(n) absolute URL .

2. <a href=”aliceatwork.html”> is an(n) relative URL.

3. A paragraph is an example of a(n) empty type element.

4. An italicized word in a paragraph is an example of a(n ) non-empty element.

5. The hexadecimal color #ffcc66 could be abbreviated to #fc6 .

6. In the URL ftp://www.mydomain.com , the scheme used is ftp (file transfer protocol .

 

Definitions:

1. What is an element?

à A label-like structure that identifies different parts of a web page.

 

2. What is an attribute?

à A characteristic of an element.

 

3. What is a value?

à A value defines an attribute. Eg. <img src=”mypic.jpg width=”300” />

Whereas width is the attribute and 300 the value of the attribute. (the pictures width is declared to 300)

 

 

 

CHAPTER 2

 

Multiple Choice:

Q1: A) recipes

Q2: A) In the browser, choose File > Open > Open File

Q3: A) View the source code in the browser

Q4: A) Sketch out a site plan

Q5: B) There are syntax checker built in

 

Definitions:

1. What is a default page?

à The front page of a website. The site that will be displayed when the URL of a website is entered without a specific file.

 

 

 

2. What is a source code?

à Sets of instructions that specify the operation/layout of a program (or in this case Website)

 

 

CHAPTER 3

 

Multiple Choice:

Q1: D) windows-1252

Q2: B) Rockers of the 80's: Live Life: Real Life Album

Q3: B) div

Q4: A) span

Q5: C) Only one

 

 

Fill-in-the-blank:

1. The section of an (X) HTML document that contains document information unseen in the browser window is the Comments.

2. Headers are hierarchical block elements that divide a page into topics and subtopics.

3. A tool tip would appear for an element if it had a title attribute .

 

 

CHAPTER 4

Multiple Choice:

Q1: B) abbr

Q2: C) blockquote

Q3: A) pre

Q4: D) ins and del

Q5: A) When writing computer code

 

 

Fill-in-the-blank:

  1. The characters to type to make a less-than bracket appear on a Web Page are &LT;
  2. The characters to type to make a greater –than bracket appear on a Web Page are &gt;

 

CHAPTER 5

 

Multiple Choice:

Q1: C) RGB

Q2: D) Set the matte to match the page's background color

Q3: B) JPEG

Q4: A) The image appears at gradually increasing resolution

Q5: B) Apply a slight Gaussian Blur

Q6: D) Create a series of images that play one after another in the same graphic element.

 

Fill-in-the-blank:

•  There are 216 colors that are considered to be Web Safe.

•  Mixing two colors to produce a missing color is called dithering.

•  The fastest way to select an entire layer is to choose the save for web command.

•  Most monitors display images at about 86 pixels per inch.

 

 

CHAPTER 6

 

Multiple Choice:

Q1: A) alt=””

Q2: A) alt

Q3: A) When the mouse is over the image

Q4: D) The image will be on the left with text flowing around to the right

 

Fill-in-the-blank:

1. A clear attribute can be added to a br tag.

2. To add white space to both the left and right side of an image, use the hspace attribute.

3. To add white space to both the top and the bottom of an image, use the vspace attribute.

4. To create a solid appearance in a horizontal rule, use the noshade attribute.

5. For a horizontal rule, the width attribute can be expressed in either pixel or percentage .

 

 

CHAPTER 7

Multiple Choice:

Q1: A) base

Q2: A) id and name

Q3: B) rect, circle, poly

Q4: C) The center of the circle and the radius

Q5: D) In the img element that corresponds to the image map

 

Fill-in-the-blank:

1. The type of image map that is interpreted by the user's browser is a client side image map.

 

2. To link to a particular place on a page use a(n) anchor .

 

3. To make a link appear in a given window or frame, use a(n) default target .

 

4. The href attribute stands for hypertext reference .

 

 

 

 

Definitions:

 

1. What is the distinction between an image map and a graphic link?

An image map is one picture with several hot spots that lead to another site. Where as a graphic link is one image that leads to another page.

 

2. What are the essential parts of a link?

A destination, a label and a target.

 

 

 

CHAPTER 8

 

Multiple Choice:

Q1: A

Q2: A

 

Fill-in-the-blank:

 

•  selector

•  declaration

•  colon, semicolon

•  ancestor

•  a:link, a:visited, a:focus, a:hover, a:active

 

 

Definitions:

•  a descendant selector is a selector based on an element's ancestor

•  a child selector is a selector based on an element's parent

•  pseudo-elements are selectors that refer to actual content that cant be manually marked as an independent element

•  format based on an adjacent sibling: the selector chooses only those element which directly follow a siblings element

 

 

CHAPTER 9

Multiple Choice:

1. A

2. B

•  D

•  B

•  D

 

 

 

 

Fill-in-the-blank:

 

•  .css

•  external

•  internal

•  local

•  inheritance and specificity rule

 

 

CHAPTER 10

Multiple Choice:

•  A

•  B

•  D

•  A

•  B

 

Fill-in-the-blank:

 

•  word-spacing

•  text-align

•  text-transform:capitalize

•  text-decoration:line through

•  repeat-x

 

Definitions:

  1. font-size keywords are: xx-small, x-small, small, medium, large, x-large, xx-large, they allow specific font size.
  2. pixels, ex (although not widely supported), em, percentages are appropriate font size units for screen styles
  3. points, cm, mm or picas are appropriate font size units for print style sheets.
  4. “larger” and “smaller” are relative font sizes

 

 

 

 

CHAPTER 11

Multiple Choice:

•  C

•  C

•  A

•  D

•  C

•  D

 

 

 

Fill-in-the-blank:

 

•  z-index

•  position:fixed

•  position:relative

•  background-repeat:no-repeat

•  foreground

•  default

•  top & bottom

•  px, percentage,ems

•  transparent

•  vertical-align:baseline

 

Definitions:

•  The overflow property allows for control of the area outside of an elements box.

•  When elements are overlapping, the x-index property allows definition of the element that should be on top.

•  The clear property allows control for elements that can float next to each other and which can't.

 

CHAPTER 12

Multiple Choice:

 

•  D

•  A

•  C

•  C

 

Fill-in-the-blank:

 

•  widows

•  orphans

 

Definitions:

•  page-break-before:when

page-break-after:when

 

where: when = always so that page breaks occur before/after the selected elements., avoid so that page breaks only occur before/after selected elements when absolutely necessary, and auto to let the browser decide.

 

2. @page: right {style-rule} is a property that controls how web pages are printed. In this case the page is defined to the right and will therefore be printed this way.

 

 

 

CHAPTER 13

Multiple Choice:

Q1: B

 

Q2: D

 

Q3: A

 

Q4: C

 

 

Fill-in-the-blank:

 

•  inside .

•  outside .

•  <dt> , <dd> .

•  upper-alpha .

 

 

 

Definitions:

  1. the default bullet styles are: disc •, circle ° and square
  2. the default ordered list style is Arabic numerals.
  3. the order that needs to be used when specifying list-style properties are: none because they can be specified in any order.

 

 

 

 

 

 

 

 

Chapter 14

 

Multiple Choice:

Q1. A tr

 

Q2 . B td

 

Q3. D The (X)HTML border attribute is inherited by all the table cells, while the CSS border property is not.

 

Q4. D 600px

 

Q5. C align

 

Q6. B Use comments to guide you

 

Q7. B The table may not render in the browser if a complete table is not there.

 

Q8. A Use either valign or vertical-align

 

 

 

Fill-in-the-blank:

 

•  percentage .

•  pixels .

•  border-spacing .

•  rowspan .

•  colspan .

 

 

Definitions:

  1. span-n is used when a table needs to be divided into structural column groups and a column group has more than one column. N reflects the number of columns in the group. Colspan-n on the other hand spans a cell across 2 columns. n= the number of columns the cell should span!

 

  1. The rules attribute specifies which lines are drawn between cells in a table .

 

 

  1. nowrap keeps text in a cell in one single line.

 

  1. In IE 5 for WIN the value of width is the sum of the content, cellspacing, cellpadding and borders.

 

 

 

 

 

 

 

 

Chapter 15:

 

 

Multiple Choice:

Q1. C 4

 

Q2. D Use an asterisk (*)

 

Q3. B As a link target.

 

Q4. B Nest a two column frameset in the top row of the first frameset.

 

Q5. C Use an i frame

 

Q6. D Embed text or (X)HTML content in a page using the object element.

 

 

Fill-in-the-blank:

 

•  transparent

•  longdesc = ”info.url”

•  target

•  “target = “_top”

•  noresize

•  frameborder = “0”

 

 

Definitions:

  1. A frameset document is an HTML document that instructs the browser to arrange the Web page content in a particular way. In a frameset document, a "frameset" tag replaces the "body" tag.

 

  1. The IFRAME element allows authors to insert a frame within a block of text whereas the frameset defines the whole web pages content.

 

  1. It is useful to use scrolling=”yes” for a frame when the information that can be shown is more that can be shown at one time in the frame.

 

 

 

 

 

 

 

 

 

Chapter 16:

 

 

Multiple Choice:

Q1. D. Cobol

 

Q2. B. In the cgi-bin directory

 

Q3. A. So it will execute

 

Q4. A. <form method=”post” enctype=”text/plain” action= mailto:[email protected] >

 

Q5. D. <select name=”name”>

 

Q6. B. optgroup

 

 

 

 

Fill-in-the-blank:

 

•  PERL .

•  ASCII

•  enctype=”multipart/form-data” .

•  <form method=”post” action=”upload.cgi”>

•  post , get .

•  name , value .

 

 

Definitions:

•  name-value pairs are the pieces of information associated for each

element on a form.

•  the form tag, the form elements, and the submit button are the 3 most important parts in a form.

 

•  the Browse button allows a user to open a dialogue box to select the file that will need to be uploaded.

 

•  The difference between a password box and a text box is that bullets or asterisks hide whatever is typed in the former.

 

 

Chapter 17

 

Multiple Choice:

 

Q1. C a plugin

Q2. B the height and width

Q3. C the object is a tiny Java application

Q4. D JavaScript

Q5. A . It only downloads and plays if the user clicks the link

 

Fill-in-the-blank:

  1. classid
  2. controls
  3. classid
  4. the number of seconds the current page should display on the screen
  5. marquee

 

 

 

Definitions:

1. Interactivity and combination of Graphics, animation, audio, video and virtual reality

 

 

Chapter 20:

 

Multiple Choice:

Q1. D 40

Q2. A 128

Q3. D . Save the document with the correct encoding

 

 

Fill-in-the-blank:

  1. hexadecimal reference
  2. adequate fonts installed

 

Definitions:

  1. A language kit refers to a file that contains a specific language other than English

 

  1. UTF-8 is a Unicode format, that uses a variable number of bits per character. ASCII uses 8 bits.

 

 

Chapter 21:

Multiple Choice:

 

Q1. B

Q2. C

Q3. D

Q4.C

Q5. D

Q6. C

 

Fill-in-the-blank:

  1. <strike>
  2. <u>
  3. title
  4. text

 

Chapter 22:

Multiple Choice:

Q1. C

Q2. C

Q3. D

 

Fill-in-the-blank:

1. <nobr>

2. <wbr>

3. <center>

4. leftmargin=”*” and topmargin=”*”

5. marginwidth and marginheight

6. tile

 

Chapter 24:

Multiple Choice:

Q1. B

Q2. C

Q3. C

Q4. B

Q5. D

Q6. A

 

Fill-in-the-blank:

  1. doctype
  2. nesting
  3. quote
  4. multi word font names
  5. extra semicolon (?)

 

 

Chapter 25:

 

Multiple Choice:

Q1. B

Q2. A

Q3. C

Q4. B

Q5. D

Q6. A

 

Fill-in-the-blank:

  1. dell.com
  2. folder
  3. text
  4. Binary
  5. File Transfer Protocol

 

Definitions:

  1. A computer running administrative software that controls access to all or part of the network and its resources (such as disk drives or printers)
  2. ISP stands for Internet Service Provider. An ISP provides Internet Access to their users.
  3. a company that retains websites for customers

 

 

 

 

Chapter 26:

 

Multiple Choice:

Q1. B

Q2. C

Q3. B

Q4. B

 

Definitions:

1. Search Emgome Optimization is reflected by companies that charge a lot of money and promise to make ones site popular by submitting it to search engines with tricky ways.

2. A crawler page contains links to all of the most important sections of a website which is submitted to the search engine. It will ensure that the proper pages will be notices.

Coding | Website Scripting | Visual Design | Instructional Design | Website Design | Website Design Tools

 

 

Copyright 2005 Kerstin Kegel