css-fonts Flashcards
Name two types of units that can be used to adjust font-size in CSS.
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.
What CSS property controls the font used for the text inside an element?
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.