HTML/CSS Practice

  1. CSS Declarations always end with a
    Semicolon
  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:

    p.center {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?

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

    <head>
    <link rel="stylesheet" type="text/css"
    href="mystyle.css" />
    </head>
    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
    background
  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
    text-decoration
  17. used to specify uppercase and lowercase letters
    in a text
    text-transform
  18. True or False

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