0
0
CSSmarkup~10 mins

Font weight in CSS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to make the text bold.

CSS
p {
  font-weight: [1];
}
Drag options to blanks, or click blank then click option'
Athin
Bbold
Clight
Dnormal
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'normal' which keeps text regular weight.
Using 'light' or 'thin' which make text thinner, not bold.
2fill in blank
medium

Complete the code to set the font weight to a numeric value for medium thickness.

CSS
h1 {
  font-weight: [1];
}
Drag options to blanks, or click blank then click option'
A400
B900
C700
D100
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 100 which is very thin.
Choosing 900 which is very bold.
3fill in blank
hard

Fix the error in the font-weight value to make the text bold.

CSS
div {
  font-weight: [1];
}
Drag options to blanks, or click blank then click option'
Astrong
Bbolded
Cbolder
Dbold
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'bolded' which is not a valid CSS value.
Using 'strong' which is an HTML tag, not a CSS value.
4fill in blank
hard

Fill both blanks to set the font weight to a numeric value and make the text thicker than normal.

CSS
span {
  font-weight: [1];
  font-weight: [2];
}
Drag options to blanks, or click blank then click option'
A400
Bbold
C700
Dnormal
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'normal' instead of numeric 400 for the first value.
Using 'bold' instead of numeric 700 for the second value.
5fill in blank
hard

Fill all three blanks to create a CSS rule that sets font weight to bold using numeric and keyword values, and then resets to normal.

CSS
p {
  font-weight: [1];
  font-weight: [2];
  font-weight: [3];
}
Drag options to blanks, or click blank then click option'
A900
Bbold
Cnormal
D400
Attempts:
3 left
💡 Hint
Common Mistakes
Using 900 which is very bold instead of 400 for normal weight.
Using '900' or '900' for the last reset instead of 'normal'.