@@ -13,15 +13,60 @@ <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
19- this will also help you fill in your PR message later-->
16+ <!-- requirement: all fields must be required -->
17+
18+ <!-- requirement: ask for customer's full name -->
19+ <!-- validation: name must be at least 2 characters -->
20+ < label for ="name "> What’s your full name?</ label >
21+ < input
22+ type ="text "
23+ id ="name "
24+ name ="name "
25+ required
26+ minlength ="2 "
27+ placeholder ="e.g. Abel T. Abelson "
28+ />
29+
30+ <!-- requirement: ask for customer's email address -->
31+ <!-- validation: must match a valid email format -->
32+ < label for ="email "> Your email address:</ label >
33+ < input
34+ type ="email "
35+ id ="email "
36+ name ="email "
37+ required
38+ placeholder ="e.g. you@example.com "
39+ />
40+
41+ <!-- requirement: customer must choose one t-shirt colour -->
42+ <!-- validation: limit choice to 3 fixed colour options -->
43+ < fieldset >
44+ < legend > Choose your t-shirt colour:</ legend >
45+ < label > < input type ="radio " name ="colour " value ="black " required /> Black</ label > < br />
46+ < label > < input type ="radio " name ="colour " value ="white " /> White</ label > < br />
47+ < label > < input type ="radio " name ="colour " value ="sage " /> Sage</ label >
48+ </ fieldset >
49+
50+ <!-- requirement: customer must select a t-shirt size -->
51+ <!-- validation: size must be one of 6 defined options -->
52+ < label for ="size "> Select your size:</ label >
53+ < select id ="size " name ="size " required >
54+ < option value =""> -- Choose one --</ option >
55+ < option value ="XS "> Extra Small (XS)</ option >
56+ < option value ="S "> Small (S)</ option >
57+ < option value ="M "> Medium (M)</ option >
58+ < option value ="L "> Large (L)</ option >
59+ < option value ="XL "> Extra Large (XL)</ option >
60+ < option value ="XXL "> Double XL (XXL)</ option >
61+ </ select >
62+
63+ <!-- requirement: a submit button must be present -->
64+ < button type ="submit "> Place Order</ button >
2065 </ form >
2166 </ main >
2267 < footer >
2368 <!-- change to your name-->
24- < h2 > By HOMEWORK SOLUTION </ h2 >
69+ < h2 > By R.M.B </ h2 >
2570 </ footer >
2671 </ body >
2772</ html >
0 commit comments