← Colour and text properties lesson New set →

CSS Worksheet: Colour and Text Properties

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

Answer key

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

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