3/16/2022 Flashcards

1
Q

What is a pseudo-class?

A

A pseudo-class is a keyword added to a selector in CSS to specify a special state of the element.

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

What are CSS pseudo-classes useful for?

A

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.

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

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

A

Pixels, percentages, and ems

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

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

A

The “font-family” property

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

What is the default flex-direction of a flex container?

A

row: left to right (ltr) or right to left (rtl)

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

What is the default flex-wrap of a flex container?

A

nowrap. Flexbox will try to fit everything into one line by default

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