1. What does CSS stand for and what does it describe?
    It stands for Cascading Style Sheets and describes how HTML elements should be displayed.
  2. What are the two parts of a CSS rule?
    a selector and a declaration block
  3. What does a selector do?
    points to the HTML element you want to style
  4. What are the two parts of a CSS declaration and what are they separated by?
    Each CSS declaration has a CSS property name and a value, separated by a colon.
  5. What does a CSS declaration always end with?
    a semicolon
  6. Declaration blocks are surrounded by what?
    curly braces
  7. What does an element selector do?
    selects HTMl elements based on the element name
  8. What does an id selector do?
    uses the id attribute of an HTML element to select a specific element
  9. Which character do id selectors begin with in CSS?
    hash (#) character
  10. Which character do class selectors begin with in CSS?
    period (.) character
  11. How do you group CSS selectors?
    separate each selector with a comma
  12. Type your name in a CSS comment.
    /*Vivian Ngo*/
  13. What are the three ways to insert CSS?
    external CSS, internal CSS, inline CSS
  14. Which method of CSS insertion lets you change the look of an entire website by changing just one file?
    external CSS
  15. Which HTML element directs the page to a style sheet?
    <style> element
  16. If some properties have been defined for the same selector (element) in different rules, which will the browser use?
    the value from the last read style sheet will be used
  17. Type the formula for specifying an RGB value.
    rgb(red,green,blue)
  18. Which method of specifying color uses a hash tag and values between 00 and ff for RGB?
    HEX value
  19. RGBA color values are an extension of RGB color values with an alpha channel—what does an alpha channel specify?
    opacity for a color
  20. Which property specifies an image to use as the background of an element?
    background-image property
  21. What does it mean when a background image is fixed?
    It will not scroll with the page.
  22. The CSS border properties allow you to specify which three aspects of an element’s border?
    border width, style, and color
  23. Which property adds rounded borders to an element?
    border-radius property
  24. Which CSS properties are used to create space around elements, outside of any defined borders?
    CSS margin properties
  25. Are negative values allowed with the margin properties?
    yes
  26. How would margin be applied for this style rule margin: 25px 50px 75px;?
    Top margin is 25px, right and left are 50px, and bottom margin is 75px.
  27. What will margin: auto; do?
    It will horizontally center the element within its container. The element will then take up the specified width, and the remaining space will be split equally between left and right margins.
  28. What is margin collapse?
    when 2 margins collapse into a single margin
    Top and bottom margins of elements are sometimes collapsed into a single margin that is equal to the largest of the two margins.
    This does not happen with left and right margins.
  29. Which properties are used to generate space around an element’s content, inside of any defined borders?
    CSS padding properties
  30. Are negative values allowed with the padding properties?
    No
  31. If an element has a specified width, is padding added to this element also added to the total width of the element?
    Yes and is often an undesirable result
  32. What is the max-width property used for?
    to define the maximum width of an element
  33. What does the box model consist of?
    content, padding, borders, and margins
  34. Which property is used to set the color of text?
    the color property
  35. Name three values that you can assign to the horizontal alignment of text using the text-align property.
    left or right aligned, centered, or justified
  36. What do the CSS font properites define?
    font style, variant, weight, size/line-height, and family
  37. The simplest way to add an icon to your HTML page, is with an icon library. Name one such library.
    Font Awesome
  38. What are the four link states that CSS can style?
    a:link - a normal, unvisited link
    a:visited - a link the user has visited
    a:hover - a link when the user mouses over it
    a:active - a link the moment it is clicked
  39. Which property specifies the type of list item marker?
    list-style-type property
  40. What are the two default display values for most elements?
    block or inline