Sunday, July 14, 2013

Html table cell background

<html>
<body>

<h4>Cell backgrounds:</h4> 
<table border="1">
<tr>
  <td bgcolor="red">First</td>
  <td>Row</td>
</tr>  
<tr>
  <td
  background="ocean.jpg">
  Second</td>
  <td>Row</td>
</tr>
</table>

</body>
</html>

Result:

Cell backgrounds:

First Row
Second Row

No comments: