← Colour and text properties lesson New set →

CSS Worksheet: Colour and Text Properties

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

Answer key

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

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