tags:

views:

77

answers:

1

Scenario:

  • Table with two tbody's
  • First tbody has a th with a scope="col" applied.
  • First tbody closes.
  • Second tbody opens - it too has a th - this needs a scope="col" applied as well.
  • Let's say for arguments sake the th's are in the same column.

The question: Does the first scope stop when it reaches the second tbody? the next scope? or does it stop at all?

If you have any tutorials or insights, I'm all ears.

Thanks.

+1  A: 

Well, I haven't tried it, but the various scope descriptions in the HTML4 specification all have the format "The current cell provides header information for the rest of the [type] that contains it," where [type] is the value of the scope attribute.

So, it sounds like it will apply to the entirety of the table, not just each tbody section.

Incidentally, since it says "the rest," it's also implied that another cell with the same scope will be the new header for any cells that follow it.

R. Bemrose