1- <!DOCTYPE html>
1+ <!doctype html>
22< html lang ="en ">
33 < head >
44 < meta charset ="utf-8 " />
55 < meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
66 < title > My form exercise</ title >
7- < meta name ="description " content ="" />
7+ < meta name ="description " content ="Form controls project for CYF " />
88 < meta name ="viewport " content ="width=device-width, initial-scale=1 " />
99 </ head >
1010 < body >
@@ -13,15 +13,69 @@ <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+ < div >
17+ < label for ="customerName "> Customer name</ label >
18+ < input
19+ id ="customerName "
20+ name ="customerName "
21+ type ="text "
22+ required
23+ minlength ="2 "
24+ autocomplete ="name "
25+ />
26+ </ div >
27+
28+ < div >
29+ < label for ="customerEmail "> Customer email</ label >
30+ < input
31+ id ="customerEmail "
32+ name ="customerEmail "
33+ type ="email "
34+ required
35+ autocomplete ="email "
36+ />
37+ </ div >
38+
39+ < fieldset >
40+ < legend > T-shirt colour</ legend >
41+ < div >
42+ < input
43+ id ="colourBlack "
44+ name ="colour "
45+ type ="radio "
46+ value ="black "
47+ required
48+ />
49+ < label for ="colourBlack "> Black</ label >
50+ </ div >
51+ < div >
52+ < input id ="colourWhite " name ="colour " type ="radio " value ="white " />
53+ < label for ="colourWhite "> White</ label >
54+ </ div >
55+ < div >
56+ < input id ="colourBlue " name ="colour " type ="radio " value ="blue " />
57+ < label for ="colourBlue "> Blue</ label >
58+ </ div >
59+ </ fieldset >
60+
61+ < div >
62+ < label for ="size "> T-shirt size</ label >
63+ < select id ="size " name ="size " required >
64+ < option value =""> Select a size...</ option >
65+ < option value ="XS "> XS</ option >
66+ < option value ="S "> S</ option >
67+ < option value ="M "> M</ option >
68+ < option value ="L "> L</ option >
69+ < option value ="XL "> XL</ option >
70+ < option value ="XXL "> XXL</ option >
71+ </ select >
72+ </ div >
73+
74+ < button type ="submit "> Place order</ button >
2075 </ form >
2176 </ main >
2277 < footer >
23- <!-- change to your name-->
24- < h2 > By HOMEWORK SOLUTION</ h2 >
78+ < h2 > By Mahmoud Shaabo</ h2 >
2579 </ footer >
2680 </ body >
2781</ html >
0 commit comments