<table>
<thead>
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="2" aria-colspan="2" id="spanning-column">Spanning</td>
<td>One</td>
</tr>
</tbody>
</table>Element: ariaColSpan property / notebook
Element: ariaColSpan property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
let el = document.getElementById("spanning-column");
console.log(el.ariaColSpan);
el.ariaColSpan = "3";
console.log(el.ariaColSpan);