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