11<!DOCTYPE html>
22< 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 >
310
4- < head >
5- < meta charset ="utf-8 " />
6- < meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
7- < title > My form exercise</ title >
8- < meta name ="description " content ="" />
9- < meta name ="viewport " content ="width=device-width, initial-scale=1 " />
10- </ head >
11+ < body >
12+ < header >
13+ < h1 > Pick product</ h1 >
14+ </ header >
15+ < main >
16+ < form >
17+ <!-- 1. What is the customer's name? I must collect this data and ensure it contains at least two non-space characters.-->
18+ < div >
19+ < label for ="name "> Name</ label >
20+ < input
21+ type ="text "
22+ id ="name "
23+ name ="name "
24+ placeholder ="Chandrmani Gaire "
25+ pattern =".*\S.*\S.* "
26+ required
27+ />
28+ </ div >
29+ < br />
30+ < div >
31+ < label for ="email "> Email</ label >
32+ < input
33+ type ="email "
34+ name ="email "
35+ placeholder ="chandramani@gmail.com "
36+ id ="email "
37+ required
38+ />
39+ </ div >
40+ < br />
41+ <!--What color should this T-shirt be? I must provide 3 options. How will I ensure they do not choose other colours? -->
42+ < div >
43+ < label for ="color "> T-shirt color:</ label >
44+ < select id ="color " name ="color " required >
45+ < option value =""> Choose a color</ option >
46+ < option value ="grey "> Grey</ option >
47+ < option value ="red "> Red</ option >
48+ < option value ="black "> Black</ option >
49+ </ select >
50+ </ div >
51+ < br />
1152
12- < body >
13- < header >
14- < h1 > Pick product</ h1 >
15- </ header >
16- < main >
17- < form >
18- <!-- 1. What is the customer's name? I must collect this data and ensure it contains at least two non-space characters.-->
19- < div >
20- < label for ="name "> Name</ label >
21- < input type ="text " id ="name " name ="name " placeholder ="Chandrmani Gaire " pattern =".*\S.*\S.* " required >
22- </ div >
23- < br >
24- < div >
25- < label for ="email "> Email</ label >
26- < input type ="email " name ="email " placeholder ="chandramani@gmail.com " id ="email " required >
27- </ div >
28- < br >
29- <!--What color should this T-shirt be? I must provide 3 options. How will I ensure they do not choose other colours? -->
30- < div >
31- < label for ="color "> T-shirt color:</ label >
32- < select id ="color " name ="color " required >
33- < option value =""> Choose a color</ option >
34- < option value ="grey "> Grey</ option >
35- < option value ="red "> Red</ option >
36- < option value ="black "> Black</ option >
53+ <!--What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL -->
54+ < label for ="size "> What size do you want?</ label >
55+ < select id ="size " name ="size " required >
56+ < option value =""> -- Choose size --</ option >
57+ < option value ="XS "> XS</ option >
58+ < option value ="S "> S</ option >
59+ < option value ="M "> M</ option >
60+ < option value ="L "> L</ option >
61+ < option value ="XL "> XL</ option >
62+ < option value ="XXL "> XXL</ option >
3763 </ select >
38- </ div >
39- < br >
40-
41- <!--What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL -->
42- < label for ="size "> What size do you want?</ label >
43- < select id ="size " name ="size " required >
44- < option value =""> -- Choose 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- < br >
53- < div >
54- < input id ="submit " type ="submit ">
55- </ div >
56- < br >
57- < div >
58- < input id ="reset " type ="reset ">
59- </ div >
60- </ form >
61- </ main >
62- < footer >
63- <!-- change to your name-->
64- < p > By Chandramani Gaire</ p >
65- </ footer >
66- </ body >
67-
64+ < br />
65+ < div >
66+ < input id ="submit " type ="submit " />
67+ </ div >
68+ < br />
69+ < div >
70+ < input id ="reset " type ="reset " />
71+ </ div >
72+ </ form >
73+ </ main >
74+ < footer >
75+ <!-- change to your name-->
76+ < p > By Chandramani Gaire</ p >
77+ </ footer >
78+ </ body >
6879</ html >
0 commit comments