JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-2.2.4.js"></script>
<body>
<p>
hello
</p>
<br>
<h1>yolo</h1>
</body>
JavaScript
var newhtml = $('<b>asd</b><p>asd</p>');
newhtml.filter('b').each(function(){
$(this).css('font-size','50px')
$(this).css('color','blue')
});
newhtml.filter('p').each(function(){
$(this).css('font-size','20px')
$(this).css('color','red')
});
/*
.each(function(){
console.log(this);
$(this).css('font-size','50px')
$(this).css('color','blue')
});
*/
$('body').html(newhtml);