← Colour and text properties lesson New set →

CSS Worksheet: Colour and Text Properties

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

Answer key

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

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