CSS Combinators

Cascading Stylesheets Tutorial


4. General Sibling Selector

The general sibling selector selects all elements that come anywhere after a specified element.

Example

Code

Output

paragraph 1

heading 4

paragraph 2

heading 5

paragraph 3

paragraph 4