How can we change the background colour of the table in HTML | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can we change the background colour of the table in HTML

I want to change the colour of the table I had created in html .... and putting it as <table bgcolor="#336699"> what is wrong here..

9th Apr 2018, 3:36 AM
mukul verma
mukul verma - avatar
10 Answers
+ 2
okay no probs
9th Apr 2018, 4:13 AM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 2
I cant see anything wrong in that line of code so would need to see the rest.
9th Apr 2018, 4:04 AM
Memphis Reigns
Memphis Reigns - avatar
+ 2
bgcolor? try <table style="background-color:red" ></table>
9th Apr 2018, 4:07 AM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 2
and soo...it's inline css.bgColor might not be a table attribute
9th Apr 2018, 4:10 AM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
0
bro rest is not problematic
9th Apr 2018, 4:05 AM
mukul verma
mukul verma - avatar
0
the main thing it this I asked
9th Apr 2018, 4:05 AM
mukul verma
mukul verma - avatar
0
hey bro this works in css
9th Apr 2018, 4:08 AM
mukul verma
mukul verma - avatar
0
I m using html
9th Apr 2018, 4:08 AM
mukul verma
mukul verma - avatar
0
bro bgcolor is attribute of table
9th Apr 2018, 4:12 AM
mukul verma
mukul verma - avatar
0
it's okay I will check it out
9th Apr 2018, 4:12 AM
mukul verma
mukul verma - avatar