10762 shaares
A combinator is something that defines the relationship between two or more selectors. There are four different combinators in CSS:
1. Descendant combinator (space)
2. Child combinator (>)
3. Next sibling combinator (+)
4. Subsequent-sibling combinator (~)
A CSS selector can contain more than one selector. Between the selectors, we can include a combinator, to create a more specific selection.
1. Descendant combinator (space)
2. Child combinator (>)
3. Next sibling combinator (+)
4. Subsequent-sibling combinator (~)
A CSS selector can contain more than one selector. Between the selectors, we can include a combinator, to create a more specific selection.