03 Practice

Return to the lesson. Work in a copy of your project; attempt these before opening solutions.

  1. Repair a label. A control has id="visitor-email" but its label has for="email". Fix it and test clicking the label.
  2. Required is a rule. Try an empty email, “not-an-email,” and alex@example.com. Record what actually happens in your browser and what the result cannot prove.
  3. Explain the boundary. Write three sentences for a teammate: why our controls omit name, why the result page is not a registration, and why adding method="post" would not create a backend.

Use invented data throughout. Keep field values out of the URL and do not connect a real service.

Open explained solutions after attempting the tasks