← Colour and text properties lesson New set →

CSS Worksheet: Colour and Text Properties

HTML and CSS lesson 14: Colour and text properties · Set 999 · 40 questions
TalentJR

Code tip (Letters, behind, size, place): color = colour of the letters; background-color = colour behind them. font-size = how big (e.g. 20px); font-weight: bold = thick letters; font-family = the font. text-align: left / center / right places the text on its line.

NameDateTime takenScore ___ / 40
  1. 1.What does font-weight do? (a) sets the letter colour (b) centres a heading (c) picks the font style (d) makes the text bold
  2. 2.What does font-size do? (a) colours behind the text (b) makes letters bigger (c) picks the font style (d) centres a heading
  3. 3.🖌️ Which CSS property picks the font style? (a) font-size (b) text-align (c) font-family (d) font-weight
  4. 4.🖌️ Which CSS property makes letters bigger? (a) color (b) text-align (c) font-weight (d) font-size
  5. 5.What does background-color do? (a) picks the font style (b) makes the text bold (c) colours behind the text (d) centres a heading
  6. 6.🖌️ What colour is behind the letters?
    li {
      background-color: yellow;
      text-align: left;
      color: blue;
      font-size: 12px;
    }
    (a) white (b) blue (c) yellow
  7. 7.🖌️ What colour are the letters?
    h2 {
      color: purple;
      text-align: left;
      font-size: 16px;
      background-color: orange;
    }
    (a) purple (b) orange (c) green
  8. 8.🖌️ Where does the text sit on its line?
    h1 {
      font-size: 32px;
      color: white;
      text-align: center;
      background-color: red;
    }
    (a) on the right (b) in the middle (c) on the left
  9. 9.🖌️ How big is the text, in px?
    li {
      text-align: center;
      background-color: yellow;
      font-size: 24px;
      color: blue;
    }
  10. 10.🖌️ Where does the text sit on its line?
    h1 {
      text-align: center;
      color: white;
      font-size: 24px;
      background-color: orange;
    }
    (a) in the middle (b) on the left (c) on the right
  11. 11.🖌️ Which CSS property centres a heading? (a) color (b) text-align (c) font-weight (d) background-color
  12. 12.🖌️ What colour is behind the letters?
    li {
      background-color: red;
      color: white;
      text-align: left;
      font-size: 40px;
    }
    (a) white (b) blue (c) red
  13. 13.🖌️ What colour is behind the letters?
    h1 {
      text-align: right;
      font-size: 32px;
      background-color: yellow;
      color: purple;
    }
    (a) purple (b) orange (c) yellow
  14. 14.🖌️ Which CSS property makes the text bold? (a) text-align (b) background-color (c) font-weight (d) font-size
  15. 15.🖌️ How big is the text, in px?
    p {
      text-align: left;
      font-size: 24px;
      background-color: white;
      color: orange;
    }
  16. 16.🖌️ What colour are the letters?
    li {
      font-size: 40px;
      text-align: left;
      color: red;
      background-color: orange;
    }
    (a) orange (b) yellow (c) red
  17. 17.🖌️ What colour are the letters?
    h1 {
      background-color: white;
      text-align: center;
      font-size: 40px;
      color: green;
    }
    (a) red (b) green (c) white
  18. 18.🖌️ What colour is behind the letters?
    h2 {
      color: red;
      font-size: 24px;
      text-align: left;
      background-color: orange;
    }
    (a) orange (b) white (c) red
  19. 19.🖌️ Which CSS property colours behind the text? (a) background-color (b) text-align (c) color (d) font-size
  20. 20.🖌️ What colour are the letters?
    li {
      background-color: orange;
      color: purple;
      font-size: 12px;
      text-align: left;
    }
    (a) black (b) orange (c) purple
  21. 21.🖌️ What colour is behind the letters?
    p {
      background-color: blue;
      text-align: left;
      font-size: 24px;
      color: orange;
    }
    (a) blue (b) green (c) orange
  22. 22.🖌️ How big is the text, in px?
    p {
      font-size: 40px;
      text-align: center;
      color: green;
      background-color: orange;
    }
  23. 23.🖌️ Where does the text sit on its line?
    p {
      font-size: 20px;
      background-color: white;
      text-align: left;
      color: purple;
    }
    (a) in the middle (b) on the right (c) on the left
  24. 24.🖌️ Where does the text sit on its line?
    h2 {
      background-color: orange;
      font-size: 20px;
      color: blue;
      text-align: left;
    }
    (a) on the right (b) on the left (c) in the middle
  25. 25.🖌️ Where does the text sit on its line?
    h1 {
      color: green;
      background-color: red;
      text-align: left;
      font-size: 20px;
    }
    (a) on the left (b) in the middle (c) on the right
  26. 26.What does color do? (a) makes letters bigger (b) colours behind the text (c) centres a heading (d) sets the letter colour
  27. 27.🖌️ Which CSS property sets the letter colour? (a) font-size (b) background-color (c) color (d) font-weight
  28. 28.🖌️ What colour is behind the letters?
    p {
      font-size: 24px;
      background-color: red;
      text-align: center;
      color: white;
    }
    (a) red (b) purple (c) white
  29. 29.🖌️ What colour is behind the letters?
    p {
      color: yellow;
      font-size: 32px;
      text-align: left;
      background-color: red;
    }
    (a) yellow (b) red (c) green
  30. 30.🖌️ How big is the text, in px?
    h1 {
      text-align: center;
      color: yellow;
      font-size: 32px;
      background-color: purple;
    }
  31. 31.🖌️ How big is the text, in px?
    h2 {
      color: blue;
      text-align: center;
      font-size: 32px;
      background-color: black;
    }
  32. 32.What does font-family do? (a) makes letters bigger (b) colours behind the text (c) sets the letter colour (d) picks the font style
  33. 33.🖌️ What colour is behind the letters?
    h2 {
      font-size: 12px;
      text-align: right;
      background-color: blue;
      color: black;
    }
    (a) blue (b) orange (c) black
  34. 34.🖌️ What colour are the letters?
    li {
      text-align: center;
      color: black;
      font-size: 16px;
      background-color: orange;
    }
    (a) black (b) green (c) orange
  35. 35.🖌️ How big is the text, in px?
    h2 {
      font-size: 40px;
      text-align: right;
      background-color: blue;
      color: white;
    }
  36. 36.🖌️ What colour are the letters?
    p {
      font-size: 16px;
      color: red;
      text-align: right;
      background-color: orange;
    }
    (a) orange (b) yellow (c) red
  37. 37.🖌️ What colour is behind the letters?
    h2 {
      background-color: purple;
      text-align: right;
      color: red;
      font-size: 12px;
    }
    (a) red (b) purple (c) black
  38. 38.🖌️ How big is the text, in px?
    h1 {
      text-align: left;
      font-size: 32px;
      background-color: orange;
      color: green;
    }
  39. 39.🖌️ Where does the text sit on its line?
    p {
      background-color: black;
      text-align: left;
      color: purple;
      font-size: 36px;
    }
    (a) on the right (b) on the left (c) in the middle
  40. 40.🖌️ What colour is behind the letters?
    h1 {
      font-size: 16px;
      text-align: center;
      background-color: green;
      color: black;
    }
    (a) red (b) green (c) black

Answer key

  1. makes the text bold
  2. makes letters bigger
  3. font-family
  4. font-size
  5. colours behind the text
  6. yellow
  7. purple
  8. in the middle
  9. 24
  10. in the middle
  11. text-align
  12. red
  13. yellow
  14. font-weight
  15. 24
  16. red
  17. green
  18. orange
  19. background-color
  20. purple
  21. blue
  22. 40
  23. on the left
  24. on the left
  25. on the left
  26. sets the letter colour
  27. color
  28. red
  29. red
  30. 32
  31. 32
  32. picks the font style
  33. blue
  34. black
  35. 40
  36. red
  37. purple
  38. 32
  39. on the left
  40. green

Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids