The rowspan attribute
The rowspan
attribute allows you to extend a row into multiple rows when we need to merge them. It's similar to the colspan
attribute that does the same with columns.
Keep in mind that assistive technology like screen readers may have difficulty parsing complex tables with spanning header cells. Use rowspan
and colspan
only when necessary — if merging two cells makes more sense than separating them. Alternatively, consider breaking bigger tables apart into a group of related smaller tables.