Fonts and Pseudo classes Flashcards
1
Q
What is a pseudo class?
A
They are special keywords for selectors that specify a special state of a selected element.
2
Q
What are pseudo classes useful for?
A
It helps the user know what state the element is in, in relation to the content and external factors. Example-
:hover lets us know when a mouse is over an element.
:visited lets us know if a link has been clicked before
3
Q
Name two types of units that can be used to adjust font-size in CSS.
A
- pixel
- em
4
Q
What CSS property controls the font used for the text inside an element?
A
font-family