Zest.

HTML: Form with labels

A short, tested HTML example for form with labels. Copy it and adjust the names and paths for your project.

HTML
<form action="/signup" method="post">
  <label for="email">Email</label>
  <input id="email" name="email" type="email" required>

  <label for="pw">Password</label>
  <input id="pw" name="pw" type="password" minlength="8" required>

  <button type="submit">Sign up</button>
</form>

Find it in Zest

Search for “html form with labels” in Zest and this example appears above the results, with other matches to choose from. Searches stay private.

More HTML examples

All HTML examples