From 6483130c8f8be2b1a80462d053edba2e5695b6fa Mon Sep 17 00:00:00 2001 From: Oussama Mouggal Date: Wed, 21 Jan 2026 21:58:49 +0000 Subject: [PATCH 1/6] Enhance name form structure and add validation requirements for user input --- Form-Controls/index.html | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 65a866cdb..d942608bc 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -12,11 +12,25 @@

Product Pick

-
- + + + +

+ We are selling t-shirts. Write a form to collect the following data: + +Our customers already have accounts, so we know their addresses and charging details already. We don't need to collect that data. We want to confirm they are the right person, then get them to choose a colour and size. + +Writing that out as a series of questions to ask yourself: + +What is the customer's name? I must collect this data, and validate it. But what is a valid name? I must decide something. +What is the customer's email? I must make sure the email is valid. Email addresses have a consistent pattern. +What colour should this t-shirt be? I must give 3 options. How will I make sure they don't pick other colours? +What size does the customer want? I must give the following 6 options: XS, S, M, L, XL, XXL +All fields are required. Do not write a form action for this project.-->