HTML Table table background color
HTML Table table background color can be designed with HTML traditional bgcolor. Interested readers can refer to the introduction of " HTML Background Color ". Another popular way to design table background color is to use the background-color property of CSS . The design and usage are similar to the traditional HTML bgcolor, and can be better integrated with the overall CSS syntax. The mainstream of the new generation of web design, in order to let you see the usage of HTML bgcolor and the design of CSS background-color , This article will use these two techniques as examples to design table background colors for HTML. If you want to use HTML5 for web page design in the future , CSS syntax is recommended . Example 1: Use HTML bgcolor to design the table background color
<tr>
<td bgcolor="red">Red table column background color</td>
<td bgcolor="yellow">Yellow Table field background color</td>
<td bgcolor="blue">Blue table field background color</td>
</tr>
</table>
Red table column background color | Yellow table column background color | Blue table column background color |
For remarks and basic grammar of table design, please refer to: HTML table .
Example 2: Use css background-color to design the table background color
<tr>
<td style="background-color:red">Red table column background color</td>
< td style="background-color:yellow">Yellow table field background color</td>
<td style="background-color:blue">Blue table field background color</td>
</tr>
</table>
Red table column background color | Yellow table column background color | Blue table column background color |
- CSS background-color background color
- CSS background-image background image
Post a Comment
0 Comments