File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 < title > My form exercise</ title >
77 < meta name ="description " content ="" />
88 < meta name ="viewport " content ="width=device-width, initial-scale=1 " />
9+ < style >
10+ body {
11+ align-items : center;
12+ padding : 10px ;
13+ }
14+ label {
15+ display : block;
16+ margin-bottom : 10px ;
17+ }
18+ input {
19+ width : fit-content;
20+ padding : 15px ;
21+ margin-bottom : 10px ;
22+ }
23+ </ style >
924 </ head >
1025 < body >
1126 < header >
1227 < h1 > Product Pick</ h1 >
1328 </ header >
1429 < main >
1530 < form >
16- < div >
31+ < div class =" name " >
1732 < label for ="name "> Name</ label >
1833 < input
1934 type ="text "
@@ -23,7 +38,7 @@ <h1>Product Pick</h1>
2338 placeholder ="Enter Your Name "
2439 />
2540 </ div >
26- < div >
41+ < div class =" email " >
2742 < label for ="email "> Email</ label >
2843 < input
2944 type ="email "
@@ -33,17 +48,17 @@ <h1>Product Pick</h1>
3348 placeholder ="Enter your email address "
3449 />
3550 </ div >
36- < div >
51+ < div class =" colour " >
3752 < label for ="red "> Red</ label >
3853 < input type ="radio " name ="colour " id ="red " value ="Red ">
3954 < label for ="blue "> Blue</ label >
4055 < input type ="radio " name ="colour " id ="blue " value ="Blue ">
4156 < label for ="green "> Green</ label >
4257 < input type ="radio " name ="colour " id ="green " value ="Green ">
4358 </ div >
44- < div >
59+ < div class =" size " >
4560 < label for ="size "> T-shirt Size</ label >
46- < select name ="colour " id ="colour ">
61+ < select name ="size " id ="size ">
4762 < option value ="XS "> XS</ option >
4863 < option value ="S "> S</ option >
4964 < option value ="M "> M</ option >
You can’t perform that action at this time.
0 commit comments