JSFiddle - React, Tailwind, and code Playground

HTML

<label for="list">khawer@blah.com</label>
<label for="list[]">zeshan@blah.com</label>

CSS

label[for=list]
{
    color:red;
}

label[for=list[]]
{
    color:green;
}