← Colour and text properties lesson New set →

CSS Worksheet: Colour and Text Properties

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

Answer key

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

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