[html5] sections and tables
webmaster at tsmchughs.com
Sat Dec 11 11:43:59 PST 2010
On 12/10/10 3:47 PM, Ricardo Tomasi wrote:
>> 2010/12/10 webmaster <webmaster at tsmchughs.com
>> On 12/7/10 3:07 PM, Ricardo Tomasi wrote:
>>> 2010/12/6 webmaster <webmaster at tsmchughs.com
>>>> <table>s cannot contain <section>s, and <tbody> does not
>>>> participate in the document outline. So if I have a <table>, am
>>>> I stuck using <h2> or <h3> or...? Is there anyway to use <h1>
>>>> as I do in sections and have the outline work correctly?
>>> In my understanding, nothing inside a table should need to appear
>>> in the outline. Tables are for tabular data
>> Each <tbody> represents a different section of the table. Each has
>> a subheading <h2>.
> I believe the most semantically adequate way would be to put each
> table on it's own section: http://snipt.org/qkKi/
Well, yes I could do that. (I thought of that earlier.) It has the
disadvantage that columns will not line up unless I set a width to each
column in each table, which limits the flexibility of the design a bit.
With one table, I can let the browser decide the best width for the
columns, keeping my design more fluid, and reducing the complexity of my
stylesheet a bit.
It seems to me that, since a <table> can have multiple <tbody> elements,
it should be possible to include them in the outline. Otherwise, why
have multiple <tbody> elements? Why is that allowed? Maybe I'm missing
If only <table> could include <section>.... :)
More information about the Help