I want to select all P’s which do not follow a H3 or a P so:
<img>
<p> this is selected</p>
<p> this is not</p>
<p> this is not</p>
<span>
<p> this is selected</p>
<h3>
<p> this is not</p>
I tried
p + :not(h3, p) and :not(h3, p) + p
but they do not work
what is the solution? Please help
You can express that, as css selector, this way:
*:not(h3):not(p) + pSee working demo