1- <!DOCTYPE html>
2- < html lang ="en ">
3- < head >
4- < meta charset ="utf-8 " />
5- < meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
6- < title > My form exercise</ title >
7- < meta name ="description " content ="" />
8- < meta name ="viewport " content ="width=device-width, initial-scale=1 " />
9- </ head >
10- < body >
11- < header >
12- < h1 > Product Pick</ h1 >
13- </ header >
14- < main >
15- < 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-->
20- </ form >
21- </ main >
22- < footer >
23- <!-- change to your name-->
24- < p > By HOMEWORK SOLUTION</ p >
25- </ footer >
26- </ body >
27- </ html >
1+ < form >
2+ <!-- Customer Name -->
3+ < div >
4+ < label for ="name "> Full Name</ label >
5+ < input
6+ type ="text "
7+ id ="name "
8+ name ="name "
9+ required
10+ minlength ="2 "
11+ pattern =".*\S.*\S.* "
12+ />
13+ </ div >
14+
15+ <!-- Email -->
16+ < div >
17+ < label for ="email "> Email Address</ label >
18+ < input
19+ type ="email "
20+ id ="email "
21+ name ="email "
22+ required
23+ />
24+ </ div >
25+
26+ <!-- T-shirt Colour -->
27+ < fieldset >
28+ < legend > Choose a colour</ legend >
29+
30+ < input type ="radio " id ="red " name ="colour " value ="red " required />
31+ < label for ="red "> Red</ label >
32+
33+ < input type ="radio " id ="blue " name ="colour " value ="blue " />
34+ < label for ="blue "> Blue</ label >
35+
36+ < input type ="radio " id ="black " name ="colour " value ="black " />
37+ < label for ="black "> Black</ label >
38+ </ fieldset >
39+
40+ <!-- T-shirt Size -->
41+ < div >
42+ < label for ="size "> Select size</ label >
43+ < select id ="size " name ="size " required >
44+ < option value =""> --Choose a size--</ option >
45+ < option value ="XS "> XS</ option >
46+ < option value ="S "> S</ option >
47+ < option value ="M "> M</ option >
48+ < option value ="L "> L</ option >
49+ < option value ="XL "> XL</ option >
50+ < option value ="XXL "> XXL</ option >
51+ </ select >
52+ </ div >
53+
54+ <!-- Submit -->
55+ < button type ="submit "> Submit Order</ button >
56+ </ form >
0 commit comments