Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (106k points)

The plus sign (+) is for the next sibling.

Is there an equivalent for the previous sibling?

1 Answer

0 votes
by (47.6k points)

You can use ~ for general successor sibling but there is no "previous sibling" selector.  It means that the element comes after this one, but not necessarily immediately after.

Browse Categories

...