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 >
10- < body >
11- < header >
12- < h1 > Product Pick</ h1 >
13- </ header >
14- < main >
15- < form >
16- < div >
3+
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+
12+ < body >
13+ < header >
14+ < h1 > Product Pick</ h1 >
15+ </ header >
16+ < main >
17+ < form >
18+ < div >
1719 < label for ="name "> Customer Name: </ label >
18- < input type ="text " name ="name " id ="name " placeholder ="enter your name " required minlength ="2 " pattern =".*\S.*\S.* ">
19- </ div > < br />
20- < div >
20+ < input type ="text " name ="name " id ="name " placeholder ="enter your name " required minlength ="2 "
21+ pattern =".*\S.*\S.* ">
22+ </ div > < br />
23+ < div >
2124 < label for ="email "> Customer Email: </ label >
22- < input type ="email " name ="email " id ="email " placeholder ="you@example.com " required >
23- </ div >
24- < div >
25+ < input type ="email " name ="email " id ="email " placeholder ="you@example.com " required >
26+ </ div >
27+ < div >
2528 < p > Choose a T‑shirt colour:</ p >
2629
27- < label >
28- < input type ="radio " name ="colour " value ="red " required >
29- Red
30- </ label >
31-
32- < label >
33- < input type ="radio " name ="colour " value ="blue ">
34- Blue
35- </ label >
36-
37- < label >
38- < input type ="radio " name ="colour " value ="black ">
39- Black
40- </ label >
41- </ div >
42- < div >
43- < p > Choose a T‑shirt size:</ p >
44-
45- < select name ="size " required >
46- < option value =""> -- Select a size --</ option >
47- < option value ="XS "> XS</ option >
48- < option value ="S "> S</ option >
49- < option value ="M "> M</ option >
50- < option value ="L "> L</ option >
51- < option value ="XL "> XL</ option >
52- < option value ="XXL "> XXL</ option >
53- </ select >
54- </ div > < br />
55- < button type ="submit "> Submit</ button >
56-
57- </ form >
58- </ main >
59- < footer >
60- < p > By LAVANYA</ p >
61- </ footer >
62- </ body >
63- </ html >
30+ < label >
31+ < input type ="radio " name ="colour " value ="red " required >
32+ Red
33+ </ label >
34+
35+ < label >
36+ < input type ="radio " name ="colour " value ="blue ">
37+ Blue
38+ </ label >
39+
40+ < label >
41+ < input type ="radio " name ="colour " value ="black ">
42+ Black
43+ </ label >
44+ </ div >
45+ < div >
46+ < p > Choose a T‑shirt size:</ p >
47+
48+ < select name ="size " required >
49+ < option value =""> -- Select a size --</ option >
50+ < option value ="XS "> XS</ option >
51+ < option value ="S "> S</ option >
52+ < option value ="M "> M</ option >
53+ < option value ="L "> L</ option >
54+ < option value ="XL "> XL</ option >
55+ < option value ="XXL "> XXL</ option >
56+ </ select >
57+ </ div > < br />
58+ < button type ="submit "> Submit</ button >
59+
60+ </ form >
61+ </ main >
62+ < footer >
63+ < p > By LAVANYA</ p >
64+ </ footer >
65+ </ body >
66+
67+ </ html >
0 commit comments