td background-color: gold; : td background « Tags « HTML / CSS






td background-color: gold;

   

<html>
<head><title>Tables</title>
<style type="text/css">
table {
    border-width: medium;
    border-color: navy;
    border-style: groove;
}

td {
    text-align: center;
    background-color: gold;
}
</style>
</head>
<body>
<center>
<table>
    <tr>
        <td>CSS</td><td>IS</td>
    </tr>
    <tr>
        <td>VERY</td><td>COOL!</td>
    </tr>
</table>
</center>
</body>
</html>

   
    
  








Related examples in the same category

1.Table and table cell backgrounds
2.td background-color:#efefef;
3.th background: lightyellow;
4.td background: url(img/menubg.gif) repeat-x bottom left #f4f4f4;
5.td:empty background: gray;
6.td background: lightyellow;
7.Column Background
8.col background: rgb(244, 244, 244);