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