CSS Pseudo-Classes and Pseudo-Elements Flashcards

1
Q

what is a css pseudo-class

A

a keyword added to selectors that specifies a special state of the element to be selected

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

what is a css pseudo-element

A

a keyword added to selectors that allow you to style certain parts of a document

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

what are css pseudo-classes preceded by

A

a colon (:)

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

what are css pseudo-elements preceded by

A

two colon (::)

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

how are pseudo-classes applied

A

as a result of user interaction with the document

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

css pseudo-class: link

A

selects any link which has not yet been visited

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

css pseudo-class: visited

A

lets you select only links that have been visited

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

css pseudo-class: hover

A

matches when the user designates an element with a pointing device, but does not necessarily activate it

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

css pseudo-class: active

A

matches when an element is being activated by the user

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

css pseudo-element: first-line

A

applies styles only to the first line of an element

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

css pseudo-element: first-letter

A

selects the first letter of the first line of a block

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