<table bgcolor="red">
<tr>
<td width="100" height="100">
</td>
</tr>
</table>
Buktikan sendiri :
<table bgcolor="red">
<tr>
<td width="100" height="100">
</td>
</tr>
</table>
Dengan CSS :
Kita tambahkan style="background-color:red" pada tag pembuka table.
<table style="background-color:red">
<tr>
<td width="100" height="100">
</td>
</tr>
</table>
<table style="background-color:red">
<tr>
<td width="100" height="100">
</td>
</tr>
</table>
HTML Background Image
Kita tetap akan menggunakan kode seperti di atas.
Tanpa CSS
Kita tambahkah dalam tag <table> dengan background:"http://codingku.com/html/img/pattern.gif"
<table background="http://codingku.com/html/img/pattern.gif">
<tr>
<td width="100" height="100">
</td>
</tr>
</table>
<table background="http://codingku.com/html/img/pattern.gif">
<tr>
<td width="100" height="100">
</td>
</tr>
</table>
Dengan CSS
<table style="background-image:url('http://codingku.com/html/img/pattern.gif')">
<tr>
<td width="100" height="100">
</td>
</tr>
</table>