JSFiddle - React, Tailwind, and code Playground
HTML
<p> yes</p>
<p> no</p>
<p> maybe</p>
CSS
:nth-match(even of p) {text-decoration: underline;}
<p> yes</p>
<p> no</p>
<p> maybe</p>
:nth-match(even of p) {text-decoration: underline;}