Can the rowspan attribute only be used within `<td>` tags?


#1

Question

Can the rowspan attribute only be used within <td> tags?

Answer

No. The rowspan attribute can also be used on <th> tags. For improved accessibility, when we create table headings that span multiple rows, we should also include the scope=”rowgroup” attribute within the opening <th> tag.


FAQ: Learn HTML Tables - Tables - Rowspan