JSFiddle - React, Tailwind, and code Playground

by richlewis14

HTML

<div id="box">
    <p>this is a box</p>
</div>

CSS

#box {
    width:200px;
    height:600px
    border-width: 1px;
    border-style: solid;
}


    
p {
    font-size: 18px;
}

JavaScript

document.getElementById("box").onmouseover = function() {
    this.style.backgroundColor = "blue";}