🌐HTML Form
Also known as Web Form, Form, <form>
The part of a page where people type or pick things to send to a server.
Think of it like
Think of it like a paper form at the doctor's. You fill in the boxes and hand it to the desk.
Example
Lucy's sign-up form asks for an email and a password. The browser stops her from sending it with the email box empty.
Why it matters
Forms are how most data gets into a website. Sign-ups, orders and searches all start here.
Definition
Example code
html
<form action="/signup" method="post">
<input type="email" name="email" required>
<button>Sign up</button>
</form>Common mistake
Key takeaways
- 1Fields and a button. Type or pick, then send.
- 2Browser checks first. Simple rules like required.
- 3Server checks again. Never trust the browser alone.