How do I change the font color in an html table?
<table>
<tbody>
<tr>
<td>
<select name="test">
<option value="Basic">Basic : $30.00 USD - yearly</option>
<option value="Sustaining">Sustaining : $60.00 USD - yearly</option>
<option value="Supporting">Supporting : $120.00 USD - yearly</option>
</select>
</td>
</tr>
</tbody>
</table>
I have tried
<span style="color: #0000ff;">
</span>
in multiple locations ... which doesn't work.
<table>
<tbody>
<tr>
<td>
<select name="test" style="color: red;">
<option value="Basic">Basic : $30.00 USD - yearly</option>
<option value="Sustaining">Sustaining : $60.00 USD - yearly</option>
<option value="Supporting">Supporting : $120.00 USD - yearly</option>
</select>
</td>
</tr>
</tbody>
</table>
Something like this, if want to go old-school.
<font color="blue">Sustaining : $60.00 USD - yearly</font>
Though a more modern approach would be to use a css style:
<td style="color:#0000ff">Sustaining : $60.00 USD - yearly</td>
There are of course even more general ways to do it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With