JSFiddle - React, Tailwind, and code Playground

by marsone

HTML

<p>The DOM is very useful!</p>
<p>This example demonstrates the <b>getElementsByTagName</b> method.</p>

CSS

.blue {
    color:black;
    background:red;
}
.highlight {
    background:yellow;
}

JavaScript

var myHTML ='Hello World';
var para = document.createElement("p");
para.innerHTML="Text of first paragraph: " +myHTML;
document.body.appendChild(para);