Section 5 - CSS Basics Flashcards

1
Q

all elements 1 level below

A

child selector

>

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

all descendents

A

space

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

specific attribute value

A

selector[attribute=”value”]

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

custom attribute value

A

selector[data-attribute=”value’]

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

sibling

A

~

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

adjacent

A

+

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

select the nth child

A

:nth-child(2),

:nth-child(2n)

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

nth of type

A

:nth-of-type(2)

:nth-of-type(2n)

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

select elements that are the only child of parent

A

:only-child

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

select elements that are the only child of specific type of its parent

A

:only-of-type

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