CSS Selectors Flashcards

1
Q

selectors are used to

A

style a specified HTML’s documents elements

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

what are the five categories of CSS selector

A
simple
combinations 
pseudo-class 
pseudo-element 
attribute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

simple selectors selects an elements based on this

A

an elements attribute, such as its name, class, or id

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

what are the four different types of combination selectors used in CSS

A

descendant (a space)
child ( > )
adjacent sibling ( + )
general sibling ( ~ )

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

what is a descendant selector

A

any two selectors with a space between them

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

a child selector is used to ?

A

match the elements which are children to a specified element

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

a adjacent selector used to ?

A

select the elements that are adjacent to a specified element

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

a general sibling selector used to ?

A

select all element that are siblings of a specified element

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

what are the three techniques used by CSS to style a sheet

A

internal
external
inline

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