CSS Selectors Flashcards
selectors are used to
style a specified HTML’s documents elements
what are the five categories of CSS selector
simple combinations pseudo-class pseudo-element attribute
simple selectors selects an elements based on this
an elements attribute, such as its name, class, or id
what are the four different types of combination selectors used in CSS
descendant (a space)
child ( > )
adjacent sibling ( + )
general sibling ( ~ )
what is a descendant selector
any two selectors with a space between them
a child selector is used to ?
match the elements which are children to a specified element
a adjacent selector used to ?
select the elements that are adjacent to a specified element
a general sibling selector used to ?
select all element that are siblings of a specified element
what are the three techniques used by CSS to style a sheet
internal
external
inline