Рет қаралды 14,906
In the previous video, we've discussed the 5 main selectors in CSS and how to use them to target HTML elements in different ways. However, in some cases, using selectors alone may not be enough or efficient.
Fortunately, CSS also provides other ways to target elements, by using selectors together which is known as combinators and in this video, we're going to talk about what these combinators are and how to use them in CSS.
A combinator is a way to define the relation between selectors. By using combinators, for example, we can target only child elements of a parent element, or we can target an element followed by another element on the same level and like that.
There are 4 types of combinators as:
descendant selector
child selector
adjacent sibling selector
general sibling selector
Video Editor: iMovie
------------------------------- Follow Me on Twitter -----------------------------------
Twitter - @cem_eygi - / cem_eygi