The background attribute shows the image in the HTML table as a background image.

<table height="50" width="100"
background="http://ashik.pw/images/stories/imagel.jpg" >
<tr><td>This table has a background image</td></tr>
</table>

 

HTML Background Repeat:

The above examples have shown that the size of the table is not equal to the size of the image, there is no problem. If the size of the table is larger than the size of the image, the background image will be replayed.

<table height="200" width="300"
background="http://ashik.pw/images/stories/imagel.jpg" >
<tr><td>This table has a background image</td></tr>
</table>

HTML Patterned Backgrounds

Different photo editing software can be used to create background images of different patterns and transparent background images. Transparent image file should be kept in gif format not in jpeg format.

<table height="100" width="150"
background="http://ashik.pw/pics/htmlT/pattern.jpg" >
<tr><td>This table has a background patterned image</td></tr>
</table>