From 2b73c4b530baadf19074676b67c87dc82afd5691 Mon Sep 17 00:00:00 2001 From: Lavanya-Projects Date: Fri, 8 May 2026 00:20:25 +0100 Subject: [PATCH 1/9] Input Field Added a customer name input field --- Form-Controls/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 74b591ffc..1830424f5 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -13,8 +13,9 @@

Product Pick

- -
From b76233340ab2e7aa75c07fa0158f57cf5134061a Mon Sep 17 00:00:00 2001 From: Lavanya-Projects Date: Fri, 8 May 2026 00:25:07 +0100 Subject: [PATCH 2/9] Email input field Added customer email input field --- Form-Controls/index.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 1830424f5..f86c09238 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -13,8 +13,14 @@

Product Pick

- - +
+ + +
+
+ + +
From 2ea2eebbee7a06889bafb131d09641fbd3671124 Mon Sep 17 00:00:00 2001 From: Lavanya-Projects Date: Fri, 8 May 2026 00:37:32 +0100 Subject: [PATCH 3/9] Radio Button Added radio button for the colour selection --- Form-Controls/index.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index f86c09238..f74144392 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -21,6 +21,24 @@

Product Pick

+
+

Choose a T‑shirt colour:

+ + + + + + +
From aa6a09a3a30bd12978ca90e35616b7e178cf9e4b Mon Sep 17 00:00:00 2001 From: Lavanya-Projects Date: Fri, 8 May 2026 00:44:51 +0100 Subject: [PATCH 4/9] Dropdown Section Added a dropdown section for the size selection --- Form-Controls/index.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index f74144392..2e047b03b 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -39,6 +39,20 @@

Product Pick

Black +
+

Choose a T‑shirt size:

+ + +
+ From 324e7f96c923c6b4a5d0d0382d5af44857b0af6f Mon Sep 17 00:00:00 2001 From: Lavanya-Projects Date: Fri, 8 May 2026 01:03:23 +0100 Subject: [PATCH 5/9] Validation Added submit button, validate the input fields --- Form-Controls/index.html | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 2e047b03b..f285353b6 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -15,11 +15,11 @@

Product Pick

- -
+ +
- +

Choose a T‑shirt colour:

@@ -51,16 +51,13 @@

Product Pick

-
+
+ -
- -

By HOMEWORK SOLUTION

+

By LAVANYA

From dcbfa4a0b7a6f299c606cac8039a1350d9e9e879 Mon Sep 17 00:00:00 2001 From: Lavanya-Projects Date: Fri, 8 May 2026 09:00:08 +0100 Subject: [PATCH 6/9] Added backslash in break tag --- Form-Controls/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index f285353b6..5eb5d071b 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -16,7 +16,7 @@

Product Pick

-

+
@@ -51,7 +51,7 @@

Product Pick

-

+
From 6013fc6ffaad3a6a8437e4b005bd1452994e545c Mon Sep 17 00:00:00 2001 From: Lavanya-Projects Date: Sat, 16 May 2026 09:20:41 +0100 Subject: [PATCH 7/9] As per the feedback, added id and name in input fields --- Form-Controls/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 5eb5d071b..28a0ee1d7 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -14,12 +14,12 @@

Product Pick

- - + +

- - + +

Choose a T‑shirt colour:

From ed6f964c6cc7165de85991e7f888739769aebd25 Mon Sep 17 00:00:00 2001 From: Lavanya-Projects Date: Sat, 16 May 2026 09:22:40 +0100 Subject: [PATCH 8/9] formatted the file --- Form-Controls/index.html | 118 ++++++++++++++++++++------------------- 1 file changed, 61 insertions(+), 57 deletions(-) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 28a0ee1d7..c1471f58d 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -1,63 +1,67 @@ - - - - My form exercise - - - - -
-

Product Pick

-
-
- -
+ + + + + My form exercise + + + + + +
+

Product Pick

+
+
+ +
- -

-
+ +

+
- -
-
+ +
+

Choose a T‑shirt colour:

- - - - - -
-
-

Choose a T‑shirt size:

- - -

- - - -
-
-

By LAVANYA

-
- - + + + + + +
+
+

Choose a T‑shirt size:

+ + +

+ + + +
+
+

By LAVANYA

+
+ + + \ No newline at end of file From fc96998142e7f6fcebbc1e7f2b2905c955e9ae9c Mon Sep 17 00:00:00 2001 From: Lavanya-Projects Date: Fri, 22 May 2026 09:17:17 +0100 Subject: [PATCH 9/9] Fixed minimum length and added fieldset tagsbased on comments --- Form-Controls/index.html | 59 ++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 27 deletions(-) diff --git a/Form-Controls/index.html b/Form-Controls/index.html index c1471f58d..8dba712e7 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -18,43 +18,48 @@

Product Pick

+ title="Name must be at least 2 characters long">

-
+

+
-

Choose a T‑shirt colour:

+
+ Choose a T‑shirt colour: + - + - + +
+

- -
-

Choose a T‑shirt size:

- - +
+ Choose a T-shirt size: + +

+