Skip to content
Justice Tech School

HTML Forms

A form collects user input. Its action says where to send data and method says how. Each field needs a name so the value is sent. Pair every input with a label.

Example
<form action="/save" method="post">
  <label for="n">Name</label>
  <input id="n" name="name">
  <button type="submit">Send</button>
</form>

Exercise

Where to send data.

<form ="/save">

Quiz Test

Which attribute names a sent field?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.