Lesson 6 of 8
Forms
Forms collect user input. The <form> element wraps input fields. Common inputs include text fields, checkboxes, radio buttons, and submit buttons.
Each input should have a name attribute so the server knows what the data represents.
HTML
<form action="/submit" method="POST">
<label for="email">Email:</label>
<input type="email" id="email" name="email">
<label for="age">Age:</label>
<input type="number" id="age" name="age">
<button type="submit">Send</button>
</form>