Vai al contenuto principale
โ† ๐Ÿ“„ HTML & the platformยทModulo A3 ยท Lezione 21
CompitoQuick recap. Build a signup form that ships all 4 A3 muscle-memory pieces in one go. <form action='/api/signup' method='post'> with one labeled email input (id='em', name='email', type='email', required, minlength='6') and a submit button. The 4 checks below verify each piece.

Recap: Forms as the API contract

50 XP5 min
Teoria

Quick recap โ€” Module A3

You spent 20 lessons on forms. The 4 things that MUST be muscle memory:

  1. `<form action method>` โ€” the contract. Backend reads form-encoded body on POST.
  2. `<label for=...>` + matching id โ€” click-targets the input, screen readers announce it.
  3. `required` / `type="email"` / `minlength` โ€” browser validates before submit. No JS needed.
  4. `<button type="submit">` โ€” the only button that fires the form. type="button" does nothing by default.

If any of these feels random, redo the lesson that introduced it (A3-01 / A3-04 / A3-07 / A3-11) then come back.

๐Ÿ”’

Iscriviti per iniziare a programmare

La teoria รจ aperta a tutti. Editor, anteprima e check si sbloccano con una prova gratuita di 7 giorni โ€” carta richiesta, annullabile in qualsiasi momento.

Iscriviti โ€” prova gratuita โ†’

Le prime 10 lezioni di ogni percorso sono gratuite. Nessuna carta richiesta.

โ† PrecedenteProssima lezione โ†’

Ricevi un consiglio Python o web al giorno โ€” via email

Breve, scritto a mano, niente spam. Disiscriviti in un clic.