I have a HTML structure as follows, with repeating pairs of img and p tags. In many cases, the img is not present.
<img>
<p></p>
<img>
<p></p>
<img>
<p></p>
<p></p>
<p></p>
<img>
<p></p>
I wish to select all p tags that are not immediately preceded by an img.
I can select p tags that are preceded by img:
img + p {}
How do I select the inverse? - ie, p tags that are not preceded by img?