Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to use the font color html

Tags:

html

colors

i would like to use the font color here. but seems don't know where to put the code for :

 <html>
 <tr>
 <td style="padding-left: 5px;"> 11.15 - 12.00 </td>
 <td style="padding-left: 5px; padding-bottom:3px;"> <b> TEST </b><br/></td>
 </tr>
 </html>
like image 739
tintincutes Avatar asked Oct 07 '10 07:10

tintincutes


2 Answers

To set the font colour, just set the color attribute in the style:

<table>
    <tr>
        <td style="padding-left: 5px; 
                   padding-bottom:3px; 
                   color:#FF0000; 
                   font-weight:bold">TEST</td>
    </tr>
</table>

This will render the word TEST in red.

like image 139
Matt Ellen Avatar answered Oct 22 '22 05:10

Matt Ellen


 <html>
 <tr>
 <td style="padding-left: 5px; color: blue;"> 11.15 - 12.00 </td>
 <td style="padding-left: 5px; padding-bottom:3px; color: green;"> <b> TEST </b><br/></td>
 </tr>
 </html>
like image 22
JoshD Avatar answered Oct 22 '22 05:10

JoshD