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=document.getElementsByTagName("p");
myHTML[0].innerHTML="Text of first paragraph:Hello World "+myHTML[0].innerHTML;