I want to insert white colour text with green bg colour in Html first table and second table should be black What should I do? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I want to insert white colour text with green bg colour in Html first table and second table should be black What should I do?

I was practicing Html Tables and It worked fine but I am unable to put White colour to the first row Text .Colour not in background to the Text I mean .It somewhat should look like this With First row having Green bg colour and Text "White" in colour . N changes to second table. h1 { colour:orange;} Selector Property Value

24th Jun 2020, 7:07 AM
E-Stine
E-Stine - avatar
1 Answer
+ 3
You can add class or id in the <tr> tag and then use background colour and color in CSS.
24th Jun 2020, 7:13 AM
Kashyap Kumar
Kashyap Kumar - avatar