[thelist] layers in tables
kasimir-k
evolt at kasimir-k.fi
Sun Jun 4 09:03:27 CDT 2006
> On 6/3/06, Birdie <bird at koolfish.com> wrote:
>> I know you can put a table inside a layer but can you do it the other way
>> round ?
VOLKAN ÖZÇELI.K scribeva in 03/06/2006 21:30:
> Anyway, it should be but I'm not quite sure.
> But the easiest way to check it out is to validate your markup [1]
It's also easy to check the specs, in this case:
http://www.w3.org/TR/html4/struct/tables.html#h-11.2.6
tells us that:
<!ELEMENT (TH|TD) - O (%flow;)* -- table header cell, table data
cell-->
which at the first read might appear somewhat cryptic, but with a little
help from http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.3.3
we find out that table cells' content type is "flow", and checking from
the DTD http://www.w3.org/TR/html4/sgml/dtd.html#flow we learn that
<!ENTITY % flow "%block; | %inline;">
i.e. table cells may contain both block and inline elements, so yes, you
can put DIVs inside of a TD.
And just in case: TDs (and THs) are the only elements where you can put
data in a table, so actually the answer is: no, you can't put a "layer"
inside a TABLE, only inside TD|TH.
.k
More information about the thelist
mailing list