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;}