JSFiddle - React, Tailwind, and code Playground

by gopinaghr

HTML

<p id="p1">Hello World!</p>
<p id="p2">Hello World!</p>

JavaScript

document.getElementById("p2").style.color="blue";
document.getElementById("p2").style.fontFamily="Arial";
document.getElementById("p2").style.fontSize="larger";

if(document.getElementById("p2").style.color=="blue")
alert("color is blue");