Explain how can we set the background colour for the table ,row and cell ??
Answers
Answered by
51
In Html,
put bgcolor attribute inside which u want to add background colour
<table bgcolor="any">
<tr bgcolor="any">
<td bgcolor="any">
put bgcolor attribute inside which u want to add background colour
<table bgcolor="any">
<tr bgcolor="any">
<td bgcolor="any">
Answered by
37
The answer is using HTML tags.
Explanation:
In HTML, the table background color is defined using the "background-colour" property. We can use this property across the whole table, or a single row, or a single cell.
- The background color of the table is set by the bgcolor="color" attribute to the <table> tag.
- The background color of a table row is set by using the <tr> tag.
- The background color of a cell in a table is set by using either in <td> or <th> tag.
Similar questions