3/16/2022 Flashcards
What is a pseudo-class?
A pseudo-class is a keyword added to a selector in CSS to specify a special state of the element.
What are CSS pseudo-classes useful for?
Pseudo-classes are useful for adding style to an element such as showing whether a link has been visited by a user, checking or unchecking a radio or checkbox, or changing the behavior of the mouse when it is over a certain element.
Name two types of units that can be used to adjust font-size in CSS.
Pixels, percentages, and ems
What CSS property controls the font used for the text inside an element?
The “font-family” property
What is the default flex-direction of a flex container?
row: left to right (ltr) or right to left (rtl)
What is the default flex-wrap of a flex container?
nowrap. Flexbox will try to fit everything into one line by default