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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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
  • pixel

- em

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

font-family

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