awk and HTML with conditional text colour

Hello All,

I am using awk with html options to format and send output to another file.
Below command works fine, no issues.

awk 'BEGIN{print "<table border="1" width="1000" >"} {print "<tr>";for(i=1;i<=NF;i++)print "<td>" $i"</td>";print "</tr>"} END
{print "</table>"}' ${TMPLOGFILE1} >> ${TMPHTML}

TEMPLOGFILE contains 3 columns viz. timestamp, servername and "Good"/"Error".

I need help to change colour of text if it contains certain values. When the 3rd column contains "Error", it should change the font colour to RED.
The output file is sent through email.

Appreciate your inputs.

Regards,
Mani