JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<p>
this is the first paragraph and it will get the prepend without any problems at all
</p>
<span>
this is a simple span element, and it will also get the prepend without any problems at all
</span>
<em>
heres a em and this works as well
</em>
<p>
here is another para and it works , BUT NOW LOOK AT THE NEXT LINE
<br>BR STARTS HERE
where is this prepend, ladies and gentlement,,NADA.
</br>
</p>
</body>
JavaScript
///add something after each open tag in the document.
console.log($("*", 'body'));
$("*", 'body').before('<b><font color="red">soccer</font></b>');