JSFiddle - React, Tailwind, and code Playground
HTML
<p class="xy">Test</p>
<p>Test</p>
CSS
p.xy {
color: green;
}
p {
color: red;
}
/* p.xy is red, because the selector is more specific to this one element. */
<p class="xy">Test</p>
<p>Test</p>
p.xy {
color: green;
}
p {
color: red;
}
/* p.xy is red, because the selector is more specific to this one element. */