What are best practices for structuring PHP forms within HTML tables?

When structuring PHP forms within HTML tables, it is important to ensure that the form elements are properly aligned with the table cells for a clean and organized layout. One way to achieve this is by nesting the form elements within the table cells and using appropriate table row and cell tags to structure the form layout.

<form method="post" action="process_form.php">
    <table>
        <tr>
            <td><label for="name">Name:</label></td>
            <td><input type="text" name="name" id="name"></td>
        </tr>
        <tr>
            <td><label for="email">Email:</label></td>
            <td><input type="email" name="email" id="email"></td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="Submit"></td>
        </tr>
    </table>
</form>