Simple Website - Selectors Flashcards

1
Q

Type Selector

A

Also known as an “element selector” this CSS selector that isolates all the elements of a given type.

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

Descendent Selector

A

CSS selector that selects all the elements of a given type that are nested inside another type of element.

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

ID Selector

A

CSS selector that selects a single element based on its ID attribute.

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

Pseudo-Class

A

Dynamic selectors that change based on user interaction with the browser, such as hovering over a link, for example.

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

Class Selector

A

Selects any HTML element that contains a matching class attribute.

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

:nth-child(An+B)

A

The nth-child pseudo-class matches A(n)+B-1 siblings in the document tree. The A value that precedes n is required. By itself, this will match every “nth” element in a group. Both A and B must be integers.

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