how to change text color

Good day, Velo community! Again, I need your assistance.

Since this is my first time coding, I’m stuck on one part and am hoping that one of you can assist me.

I wanted to alter the background colour of the column that the text is in on ViewportEnter as well as the colour of the text. I therefore employed the code below .

$w.onReady(() => {
$w('#text1').onViewportEnter(() => {
$w('#text1').html = `<p style="color:green;">${$w('#text1').text}</p>`;
})
})