- From: John Anthony Lewis <gleemax@myrealbox.com>
- Date: Thu, 21 Feb 2002 15:44:30 -0600
- To: www-style@w3.org, Jesse McCarthy <mccarthy36@earthlink.net>
2/20/02 4:40:16 PM, Jesse McCarthy <mccarthy36@earthlink.net>
wrote:
>>> Tables in CSS should be used only with XML!
>>
>>That is incorrect. I am curious as to what gave you that
>>impression?
>
> Ian, for future reference: you will look less foolish if
> you don't mention that you are an "Invited Expert" when
> posting something like this, or better yet if you don't
> post something like it at all. Several people have already
> explained this to you, something you would have known in
> the first place if you were an expert.
I'll quote the CSS2 spec for you, Jesse.
<http://www.w3.org/TR/REC-CSS2/tables.html#q2>
> The CSS model does not require that the document language
> include elements that correspond to each of these
> components. For document languages (such as XML
> applications) that do not have pre-defined table elements,
> authors must map document language elements to table
> elements; this is done with the 'display' property. The
> following 'display' values assign table semantics to an
> arbitrary element:
> [...]
> The default style sheet for HTML 4.0 in the appendix
> illustrates the use of these values for HTML 4.0:
>
> TABLE { display: table }
> TR { display: table-row }
> THEAD { display: table-header-group }
> TBODY { display: table-row-group }
> TFOOT { display: table-footer-group }
> COL { display: table-column }
> COLGROUP { display: table-column-group }
> TD, TH { display: table-cell }
> CAPTION { display: table-caption }
>
> User agents may ignore these 'display' property values for
> HTML documents, since authors should not alter an element's
> expected behavior.
--
John Lewis
Received on Thursday, 21 February 2002 16:46:46 UTC