JSFiddle - React, Tailwind, and code Playground

by Karan1412

HTML

<body>
<p>This is 20fingers2Brains.</p>
<hr id="hr1"/>
<p>Powered by kk.</p>
<input type="button" id="b1" value="Press" onclick="hr()"/>
</body>

CSS

.hr
{
background-color:green;
height:15px;
}

JavaScript

function hr()
{
document.getElementById("hr1").className="hr";
}