<table>
<thead>
<tr>
<th>Name</th>
<th>Occupation</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bob</td>
<td>Plumber</td>
</tr>
<tr>
<td>Jim</td>
<td>Roofer</td>
</tr>
</tbody>
</table>HTMLTableElement: deleteTHead() method / notebook
HTMLTableElement: deleteTHead() 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.deleteTHead();