honey wants to add background colour to the table he created in his webpage .
what HTML c o d e he will use ?
Answers
Answered by
0
Answer:
The older method used the attribute bgcolor to change the background color of a table. It could also be used to change the color of a table row or a table cell. But the bgcolor attribute has been deprecated in favor of style sheets, so it's not the optimal way to manipulate a table's background color.
The better way to change the background color is to add the style property background-color to the table, row, or cell tag.
This example changes the background color of an entire table:
table { background-color: #ff0000; }
tr { background-color: yellow; }
td { background-color: #000; }
Similar questions