JSFiddle - React, Tailwind, and code Playground

HTML

<div a=b c=d>
</div>

CSS

div[a=b][c=d] {
  height: 50px;
  width: 50px;
  background-color:red;
}