Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

204 CHAPTER 4 Getting started with CSS3



  1. Correct answer: B
    A. Incorrect: The monospace font family characters are all the same width.
    B. Correct: The serif font family characters have serifs (curls) on the top and bottom
    of them.
    C. Incorrect: The sans serif font family characters do not have serifs (curls) on the top
    and bottom of them.
    D. Incorrect: The cursive font family characters imitate handwriting.
    E. Incorrect: The fantasy font family has decorative characters.

  2. Correct answer: D
    A. Incorrect: Using static, the element is displayed where it would normally appear in
    the HTML flow. This is the default.
    B. Incorrect: Using relative, the element is displayed relative to where it would nor-
    mally appear in the HTML flow.
    C. Incorrect: Using absolute, the element is removed from the HTML flow and
    positioned within the first non-static element. Although this could mean that the
    element is positioned within the browser window, it’s not guaranteed.
    D. Correct: Using fixed, the element is removed from the HTML flow and positioned
    within the browser window.

Free download pdf