Text color in an HTML cell

LaGr3nouille Posted messages 9 Status Member -  
Doctor C Posted messages 630 Registration date   Status Member Last intervention   -
Hello,

Still in my HTML learning, I would like to change the text color in the cells of a table. Could someone please provide the magic tag?
Thanks in advance

the gr3nouille

1 answer

  1. Doctor C Posted messages 630 Registration date   Status Member Last intervention   400
     
    The old way of functioning is to surround your text with the <FONT> tag:

    <table><tr> <td><FONT COLOR="blue">Color</FONT></td> </tr></table>

    The new (and better) way of functioning is to use CSS styles:

    <table><tr> <td style="color:blue">Color</td> </tr></table>

    The best practice for CSS styles is to create an external file and apply the styles to elements according to their IDs, names, or classes (etc.) but you can do it like I did above.

    --

    Echo "Lima Mike Alfa";
    6