Services Work Learn About Contact
0/8
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>
🧠

Quick Quiz

Answer correctly to unlock the next lesson.

Support the mission

This learning platform is 100% free: no ads, no tracking, no paywalls. If it helped you learn something useful, you can support future lessons or donate to Doctors Without Borders, which provides emergency medical care in crisis zones worldwide.

🎉

You completed HTML!

You finished all 8 lessons and quizzes. You now know the basics of HTML.