← Colour and text properties lesson New set →

CSS Worksheet: Colour and Text Properties

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

Answer key

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

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