Welcome to the forums
The easiest way to style HTML content in the page is to identify the region you wish to style, wrap it in an appropriate element, give it a
id value, and create the appropriate style rule to target it.
For styling some text inside a larger chunk of text, the
span element is the perfect wrapper. Below is an example that shows this at work:
document.write("Hello <span class='name'>haberjin</span>!!!");
What you will do inside your
document.write block should be very similar.