I want form data to be printed in the following table when you press the insert button.
<tr>
<th>Nome</th>
<th>Data de Nascimento</th>
<th>CPF</th>
<th>RG</th>
<th>Email</th>
<th>Código de Acesso</th>
</tr>
Registration table
<form name="form1" onsubmit="return fasle">
<table align="center">
<h1 align="center">Exercicio</h1>
<tr>
<td> Nome: </td> <td> <input id="nomeID" /> </td>
</tr>
<tr>
<td> Data de Nascimento: </td> <td><input type="text" name="data" onKeyPress="MascaraData(form1.data);"
maxlength="10" onBlur= "ValidaDataform1.data);"></td>
</tr>
<tr>
<td> CPF:</td> <td> <input type="text" name="cpf" onBlur="ValidarCPF(form1.cpf);" onKeyPress="MascaraCPF(form1.cpf);" maxlength="14"/></td>
</tr>
<tr>
<td>RG:</td> <td><input id="rgID" /></td>
</tr>
<tr>
<td>Email:</td> <td><input id="emailID" /> </td>
</tr>
<tr>
<td>Código de acesso:</td> <td><input id="codigoID" /></td>
</tr>
<tr>
<td>Senha:</td> <td><input id="senhaID" /></td>
</tr>
<tr>
<td>Confirmação de senha:</td> <td><input id="confirmaID" /></td>
</tr>
</table>
<div align="center">
<table >
<tr>
<td >
<button onclick="inserir()" type="submit">Inserir</button>
</td>
</tr>
</table>
</div>
<br>
<table border="1" align="center">
<caption></caption>
<thead>
<tr>
<th>Nome</th> <th>Data de Nascimento</th> <th>CPF</th> <th>RG</th> <th>Email</th> <th>Código de Acesso</th>
</tr>
</thead>
<tbody>
<tr>
<td id="nome"></td> <td id="nascimento"></td> <td id="cpf"></td> <td id="rg"></td>
<td id="email"></td> <td id="codigo"></td>
</tr>
<tr>
<td></td> <td></td> <td></td> <td></td> <td></td> <td></td>
</tr>
<tr>
<td></td> <td></td> <td></td> <td></td> <td></td> <td></td>
</tr>
<tr>
<td></td> <td></td> <td></td> <td></td> <td></td> <td></td>
</tr>
<tr>
<td></td> <td></td> <td></td> <td></td> <td></td> <td></td>
</tr>
</tbody>
</table>
</form>
</body>