Design and Development > HTML, CSS and Website Design & Programming

Problem in <td> tag background color

(1/1)

w3school:
I have table in which I have mentioned background color in <td> tag as follow:


--- Code: ---<td bgcolor = "#123456">
--- End code ---

But is some browser it doesn't display properly. Am I missing something?

Thanks,

w3school

Kailash:
I suggest you to use style in <td> instead of bgcolor:


--- Code: ---<td style="background-color:red">
--- End code ---

Regards,

Kailash

jacksonp:
That is quite simple,I use the following method..
<TD bgcolor=#00FF00>
So may friend,I don't have any issue with this code,can you please explaine more briefly for the error for which you are talking about?

evalauren:
Provided solution is very useful I will try it in my tutorial I had faced like wise same problem but after saw solution here I am wondering really sweet but in sort way describe very important point .

Navigation

[0] Message Index

Go to full version