Rendering Tables

Hi there, I have a question about rendering tables.  

Given the following snippet:

<table style="background: red;">
   <caption>Table Caption</caption>
   <tr>   
   <td><p>Cell</p></td>
   <td><p>Cell</p></td>
   <td><p>Cell</p></td>
   </tr>
 </table>

The background of the cells will be red.  But should the background of the caption be red?

In all the browsers I have tried the background of the caption is not red.  Yet, I would expect the caption to inherit this property from its parent element, "table".  Is this correct?

nik

Received on Wednesday, 24 April 2002 20:01:13 UTC