Can't gave color to table | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can't gave color to table

hey community, First, I have tried to give color table as you see. after I noticed can t do it, tried to gave color data with <p> I think understanding this point is very important to me for catch basic HTML if you can help I would glad. code: <table color="red" border="2"> <tr color="red"> <td color="red"> <p color="red"> red </p> </td> <td>Blue</td> <td>Green</td> </tr> <tr> <td><br /></td> <td colspan="2"><br /></td> </tr> </table>

29th May 2017, 4:56 PM
Melih Cem Kılıç
Melih Cem Kılıç - avatar
4 Answers
+ 17
<table border="2" style=color:blue;background:yellow;border-color:green> <tr> <td style="color:red"> hgfyhv </td> <td>Blue</td> <td>Green</td> </tr> <tr> <td><br /></td> <td colspan="2"><br /></td> </tr> </table>
29th May 2017, 6:13 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 19
......... style=color:red .......
29th May 2017, 4:58 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
thank you very much. its worked for data but as you can see table is still black. i tried to add "style" to table also but couldnt change table's color <table border="2"> <tr> <td style="color:red"> hgfyhv </td> <td>Blue</td> <td>Green</td> </tr> <tr> <td><br /></td> <td colspan="2"><br /></td> </tr> </table>
29th May 2017, 5:15 PM
Melih Cem Kılıç
Melih Cem Kılıç - avatar
+ 1
@valentineHacker thhhhaaaannnnkkkkkssss
29th May 2017, 6:50 PM
Melih Cem Kılıç
Melih Cem Kılıç - avatar