-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
Resource URL
https://www.w3.org/WAI/tutorials/tables/irregular/
Description
While checking for table HTML code, I noticed a discrepancy on:
Tables with Irregular Headers
In Example 2: Table with headers spanning multiple rows or columns, there is a link below the code to a “Full code example” at https://www.w3.org/WAI/tutorials/tables/examples/scope-multiple/
<caption>
Poster availability
</caption>
<tr>
<th scope="col">Poster name</th>
<th scope="col">Color</th>
<th colspan="3" scope="colgroup">Sizes available</th>
</tr>
However the code on the full example is not the same as the code used in the Example 2 table.
<caption>
Poster availability
</caption>
<col>
<col>
<colgroup span="3"></colgroup>
<thead>
<tr>
<th scope="col">Poster name</th>
<th scope="col">Color</th>
<th colspan="3" scope="colgroup">Sizes available</th>
</tr>
</thead>
Are both correct, or is one better than the other?
Resource Shortname
wai-tutorials
Reactions are currently unavailable