I created a simple HTML code to showcase some outcomes.
The possible results are SUCCESS
, Failure
, and Still Failing
. I want these results to be displayed with corresponding colors, such as green for SUCCESS
, and red for both Failure
and Still Failing
.
I searched for solutions online, but most of them involve using JavaScript or jQuery which I am not familiar with. I attempted various methods without success.
Is there an "if" condition statement that could handle this situation?
<body leftmargin="8" marginwidth="0" topmargin="8" marginheight="4" offset="0">
<table width="95%" cellpadding="0" cellspacing="0" style="font-size: 11pt; font-family: Tahoma, Arial, Helvetica, sans-serif">
<tr>
<td>(Automatic email, DO NOT REPLY)</td>
</tr>
<tr>
<td>
<h2>
<font color="#039b10">Build result - SUCCESS</font>
</h2>
</td>
</tr>
</table>
</body>
</html>