Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

194 CHAPTER 4 Getting started with CSS3


■■Use the clear property to indicate when an element is to be positioned clear after the
previous element.
■■Use the box-sizing property to change the default width calculation from content to
border.

Lesson review


Answer the following questions to test your knowledge of the information in this lesson. You
can find the answers to these questions and explanations of why each answer choice is correct
or incorrect in the “Answers” section at the end of this chapter.


  1. You want to find three shades of a color to use on parts of your webpage. Which color
    function helps you accomplish this task?
    A. rgb( )
    B. rgba( )
    C. hsl( )
    D. color( )

  2. A font that has curls at the top and bottom of its characters belongs to which font
    family group?
    A. monospace
    B. serif
    C. sans serif
    D. cursive
    E. fantasy

  3. You want to position a
    element in relation to the browser window. Which posi-
    tion setting do you use?
    A. static
    B. relative
    C. absolute
    D. fixed


Practice exercises


If you encounter a problem completing any of these exercises, the completed projects can be
installed from the Practice Exercises folder that is provided with the companion content.
Free download pdf