← Colour and text properties lesson New set →

CSS Worksheet: Colour and Text Properties

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

Answer key

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

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