@@ -13,10 +13,48 @@ <h1>Product Pick</h1>
1313 </ header >
1414 < main >
1515 < form >
16- <!-- write your html here-->
17- <!--
18- try writing out the requirements first as comments
16+
17+ < div >
18+
19+ < label for ="name "> Name:</ label >
20+ < input type ="text " id ="name " name ="name " required pattern ="\S{2,} " title ="Please enter at least two non-space characters. ">
21+ </ div >
22+
23+ < div >
24+ < label for ="email "> Email:</ label >
25+ < input type ="email " id ="email " name ="email " required >
26+ </ div >
27+ < div >
28+ < label for ="color "> Colour:</ label >
29+ < select id ="color " name ="color " required >
30+ < option value =""> Please select a colour</ option >
31+ < option value ="red "> Red</ option >
32+ < option value ="blue "> Blue</ option >
33+ < option value ="green "> Green</ option >
34+ </ select >
35+ </ div >
36+ < div >
37+ < label for ="size "> Size:</ label >
38+ < select id ="size " name ="size " required >
39+ < option value =""> Please select a size</ option >
40+ < option value ="xs "> XS</ option >
41+ < option value ="s "> S</ option >
42+ < option value ="m "> M</ option >
43+ < option value ="l "> L</ option >
44+ < option value ="xl "> XL</ option >
45+ < option value ="xxl "> XXL</ option >
46+ </ select >
47+ </ div >
48+ < div >
49+ < button type ="submit "> Submit</ button >
50+ </ div >
51+ <!--
1952 this will also help you fill in your PR message later-->
53+ <!--
54+ What is the customer's name? I must collect this data and ensure it contains at least two non-space characters.
55+ What is the customer's email? I must make sure the email is valid. Email addresses follow a consistent pattern.
56+ What colour should this T-shirt be? I must provide 3 options. How will I ensure they do not choose other colours?
57+ What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL -->
2058 </ form >
2159 </ main >
2260 < footer >
0 commit comments