Ultimate CSS Selector Cheatsheet for HTML Parsing
Ultimate companion for HTML parsing using CSS selectors. This cheatsheet contains all syntax explanations with interactive examples.
To select the following sibling (i.e. sibling that is below the current element) the +
and ~
combinators can be used.
The ~
selects any following general sibling:
The +
selects one following adjacent sibling (i.e. has to be right below it):