How to use html font color

I would like to use the font color here. but I don’t seem to 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> 
+6
html colors
source share
4 answers

To set the font color, simply 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 make the word TEST red.

+18
source share
  <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> 
+4
source share

Use the Css stylesheet:

 <style> .a td{ padding-left: 5px; padding-bottom:3px; color: blue; } </style> <table class="a"> <tr> <td >TEST</td> </tr> </table> 
+4
source share

I did not find the body tag in your code and was not a table tag .. so here is the correct code ... according to your requirements

  <html> <body> <table> <tr> <td style="padding-left: 5px;color:red"> 11.15 - 12.00 </td> <td style="padding-left: 5px; padding-bottom:3px;"><b> TEST </b><br/></td> </tr> </table> </body> </html> 
+2
source share

All Articles