Sibling Selectors
In this lesson, we will study all about sibling selectors. Let's begin!
Selecting HTML tags based on surrounding siblings
Often you need to select HTML tags that are based on their surrounding siblings. To carry out this task, CSS3 offers you two sibling selectors:
- the adjacent sibling selectors
- the general sibling selectors
The adjacent sibling selector selects all elements that are the adjacent siblings of a specified element. The general sibling selector matches all elements of a specific type ...