css-fonts Flashcards

1
Q

Name two types of units that can be used to adjust font-size in CSS.

A

Two types of units can be used to adjust font-size in CSS are: px (pixels) and rem (root font-size which is default to 16px). em is based on the width of an m as well as determined by the font-size of the parent element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What CSS property controls the font used for the text inside an element?

A

The CSS property that controls the font used for text inside an element is font-family. Typically font-family has the less common fonts on the left, with the more common fonts on the right incase the user does not have the desired font installed. When choosing a font-family it is important for them to be of the same font-type such as monospace, sans-serif, or serif.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly