HTML/CSS Practice

  1. CSS Declarations always end with a
  2. Declaration groups are surrounded by
    curly braces
  3. used to specify a style for a single, unique element
    ID selector
  4. the id attribute of the HTML element is defined by a
  5. the class selector is most often used on
    several elements
  6. class selector uses the HTML class attribute and is defined by a
  7. What will the following code do: {text-align:center;}
    all p elements with class="center" will be center-aligned
  8. What type of style is this?

    <p style="color:sienna;margin-left:20px">This is a paragraph.</p>
    Inline Style
  9. What type of style sheet is this?

    <style type="text/css">
    hr {color:sienna;}
    p {margin-left:20px;}
    body {background-image:url("images/back40.gif");}
    Internal Style sheet
  10. Why would you use this code?

    <link rel="stylesheet" type="text/css"
    href="mystyle.css" />
    To link to an external style sheet
  11. CSS properties used for background effects are:
    • background-color
    • background-image
    • background-repeat
    • background-attachment
    • background-position
  12. The background image for a page can be set like this:
    body {background-image:url('paper.gif');}
  13. The shorthand property for background is simply
  14. When using the shorthand property the order of the property values are:
    • background-color
    • background-image
    • background-repeat
    • background-attachment
    • background-position
  15. used to set the horizontal alignment of a text
    text-align property
  16. used to set or remove decorations from text
  17. used to specify uppercase and lowercase letters
    in a text
  18. True or False

    If the name of a font family is more than one word, it must be in
    quotation marks
  19. used to specify italic text
Card Set
HTML/CSS Practice
Study points for CIS 4004 Exam 1