← Colour and text properties lesson New set →

CSS Worksheet: Colour and Text Properties

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

Answer key

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

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