JSFiddle - React, Tailwind, and code Playground

HTML

<iframe id='frame'>

</iframe>

CSS

#frame {
  border: solid 6px red;
}

#frame:hover {
  border: solid 6px green;
}