I'm having a HTML document that contains processing instructions and should be styled using CSS. I didn't find any way to refer to the processing instructions from CSS. Is this possible?
<div>
Hello World
<?pi1 ?>
Test
<?pi2 ?>
</div>
No. Browsers will treat them as bogus comments, so in the DOM they will be comment nodes. CSS selectors match element nodes, so the processing instructions are not referable.