Web Development and Design Foundations with XHTML, 5th Edition

(Steven Felgate) #1

(^652) Answers
Review Questions



  1. b

  2. a

  3. c

  4. c

  5. b

  6. c

  7. c

  8. a

  9. b

  10. b

  11. stickiness

  12. <meta name="robots"
    description=
    "noindex,nofollow" />

  13. search engines and search indexes

  14. a variety of methods, including
    affiliate programs, banner ads, ban-
    ner exchanges, reciprocal link
    agreements, blog posting, RSS
    feeds, newsletters, personal recom-
    mendations, social book-marking,
    traditional media advertising, or
    including a URL on all promo-
    tional materials

  15. a reasonable expense related to
    advertising and marketing an
    organization


Chapter 14


Checkpoint 14.1



  1. JavaScript can be used for rollover images, form data validation, popup windows,
    browser sniffing, interactivity such as alert messages and prompts, and mathemat-
    ical calculations for tasks such as determining tax.

  2. There is no limit to the number of script blocks that can be embedded in an
    XHTML document.

  3. You can use the JavaScript Console in Firefox to find an error. You could also
    look through your code, paying particular attention to names of objects, proper-
    ties, methods and statements, and missing semicolons.


Checkpoint 14.2



  1. An object is a thing, a property is an attribute, and a method is an action.

  2. An event is an occurrence such as click, load, and mouseover. An event handler is
    an attribute embedded in an XHTML tag such as onclick,onload, and
    onmouseover, that points to some JavaScript code to execute when the corre-
    sponding event occurs.

  3. Event handlers are embedded in XHTML tags and are not placed in separate
    script blocks.


Checkpoint 14.3



  1. The prompt()method could be used to gather a piece of data such as the user’s
    age. The prompt()method should be used in conjunction with a variable so that
    the data will be stored in the variable.

Free download pdf