<table>
<thead>
<tr>
<th>Name</th>
<th>Score</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bob</td>
<td>541</td>
</tr>
<tr>
<td>Jim</td>
<td>225</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Average</th>
<td>383</td>
</tr>
</tfoot>
</table>HTMLTableElement: deleteTFoot() method / notebook
HTMLTableElement: deleteTFoot() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const table = document.querySelector("table");
table.deleteTFoot();