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