colspan and rowspan Do Not Share the Same Ceiling
The two table attributes behave differently in practice, but the exact limits are easy to miss—as a pair of quick polls from Jens Oliver Meiert showed.
The HTML Standard spells out how each value is parsed. For colspan, the parser reads the attribute; if parsing fails, yields zero, or the attribute is absent, colspan becomes 1. Any result above 1000 is clamped down to 1000.
rowspan follows a similar parse, with a fallback of 1 when parsing fails or the attribute is missing. Its ceiling, though, is 65534: anything greater is cut to that number.
colspan: fallback 1, maximum 1000.rowspan: fallback 1, maximum 65534.
So why is the rowspan cap 6,4543 spans larger than the colspan cap? The source offered no explanation—just the observation that such numbers usually have good reasons behind them, and a note that this one makes for decent cocktail chatter.



