@@ -20,54 +20,37 @@ <h1>T-shirt Order Form</h1>
2020
2121 < div >
2222 < label for ="name "> Full Name</ label >
23- < input id ="name " name ="name " type ="text " minlength ="2 " placeholder ="Your full name " required >
23+ < input id ="name " name ="name " type ="text " minlength ="2 " placeholder ="First Name Surname " required >
2424 </ div >
2525
2626 < div >
2727 < label for ="email "> Email</ label >
28- < input id ="email " name ="email " type ="email " placeholder ="Your email " required >
28+ < input id ="email " name ="email " type ="email " pattern ="[A-Za-z0-9._%+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,}$ "
29+ placeholder ="Your email " required >
2930 </ div >
3031
31- < div >
32- Colour
33- < div >
34- < label for ="red "> Red</ label >
35- < input id ="red " name ="red " type ="checkbox ">
36- </ div >
37- < div >
38- < label for ="blue "> Blue</ label >
39- < input id ="blue " name ="blue " type ="checkbox ">
40- </ div >
4132 < div >
42- < label for ="green "> Green</ label >
43- < input id ="green " name ="green " type ="checkbox ">
44- </ div >
33+ < label for ="colour "> T-shirt Colour:</ label >
4534
46- < div >
47- Size
48- < div >
49- < label for ="xs "> XS</ label >
50- < input id ="xs " name ="size " type ="radio ">
51- </ div >
52- < div >
53- < label for ="s "> S</ label >
54- < input id ="s " name ="size " type ="radio ">
55- </ div >
56- < div >
57- < label for ="m "> M</ label >
58- < input id ="m " name ="size " type ="radio ">
59- </ div >
60- < div >
61- < label for ="l "> L</ label >
62- < input id ="l " name ="size " type ="radio ">
63- </ div >
64- < div >
65- < label for ="xl "> XL</ label >
66- < input id ="xl " name ="size " type ="radio ">
35+ < select name ="colour " id ="colour " required >
36+ < option value =""> Choose a Colour</ option >
37+ < option value ="Red "> Red</ option >
38+ < option value ="Blue "> Blue</ option >
39+ < option value ="Yellow "> Yellow</ option >
40+ </ select >
6741 </ div >
42+
6843 < div >
69- < label for ="xxl "> XXL</ label >
70- < input id ="xxl " name ="size " type ="radio ">
44+ < label for ="Size "> T-shirt Size:</ label >
45+ < select name ="size " id ="Size " required >
46+ < option value =""> Choose a Size</ option >
47+ < option value ="XS "> XS</ option >
48+ < option value ="S "> S</ option >
49+ < option value ="M "> M</ option >
50+ < option value ="L "> L</ option >
51+ < option value ="XL "> XL</ option >
52+ < option value ="XXL "> XXL</ option >
53+ </ select >
7154 </ div >
7255
7356 </ div >
0 commit comments