← Colour and text properties lesson New set →

CSS Worksheet: Colour and Text Properties

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

Answer key

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

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