HTML Foundations: Module 6

← Dashboard
Module 6: The Order Form

Forms & User Input

Collect user data with <form>. Use <input>, <textarea>, <select>, and <button>. The submit button sends the form data to the server.

<form action="/order" method="POST">
  <input type="text" name="name" placeholder="Your name">
  <input type="email" name="email">
  <input type="checkbox" name="newsletter"> Subscribe
  <button type="submit">Place Order</button>
</form>

Sample Order Form

Pro Tip

Use <label> with for="id" to link labels to inputs for accessibility.

Input Types

text, email, password, checkbox, radio, submit, button, file.