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