Web Development and Design Foundations with XHTML, 5th Edition

(Steven Felgate) #1

(^642) Answers


Chapter 6


Checkpoint 6.1



  1. Answers will vary. They could include the following: ease of site maintenance,
    separation of style from structure, increased accessibility, support of the Semantic
    Web, smaller documents, increased page layout control, support of multiple
    media types, and greater typography control.

  2. Relative positioning allows you to alter the position of an element in relation to
    where it would otherwise be displayed using normal flow. Absolute positioning
    allows you to specify by pixels the exact location of an element in a Web page.

  3. The z-indexproperty provides flexibility in the display of elements. When using
    XHTML only there is no easy way to “stack” elements other than configuring
    backgrounds for pages or tables. The z-indexproperty configures the stacking
    order of elements on a Web page. The default z-indexvalue is 0. Elements
    with higher z-indexvalues will appear stacked on top of elements with lower
    z-indexvalues rendered on the same position of the page.


Checkpoint 6.2



  1. The page layout is liquid. Attributes of liquid page design include the following:
    pages take up 100 percent of the browser window—there is no blank margin on the
    left or right side of the page. The middle area expands and contracts when the page
    is resized. The content flows to fill whatever size window is used to display it.

  2. Answers will vary. Some of the suggestions listed in the debugging section may be
    used.

  3. Configure the XHTML tag as a selector if the style is expected to be applied
    every time that tag is used. Configure an id if the style is for a specific element
    that is expected to occur only once on a page. Configure a class if the style is
    expected to be applied to a variety of different XHTML elements.


Review Questions



  1. Student answers will vary. The four
    principles that are essential to com-
    plying with WCAG 2.0 are as fol-
    lows: Perceivable, Operable,
    Understandable, and Robust.

    1. Content must be Perceivable

    2. Interface components in the
      content must be Operable
      3. Content and controls must be
      Understandable
      4. Content should be Robust
      enough to work with current
      and future user agents, includ-
      ing assistive technologies



  2. a

  3. a

  4. b

  5. b

  6. d

  7. c

  8. c

  9. b

Free download pdf