44 < meta charset ="utf-8 " />
55 < meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
66 < title > My form exercise</ title >
7+ < link rel ="stylesheet " href ="style.css ">
78 < meta name ="description " content ="" />
89 < meta name ="viewport " content ="width=device-width, initial-scale=1 " />
910 </ head >
1213 < h1 > Product Pick</ h1 >
1314 </ header >
1415 < main >
15- < form action =" order " method ="post ">
16+ < form method ="post ">
1617 < div >
1718 < label for ="CustomerName "> Customer Name:</ label >
18- < input type ="text " id ="CustomerName " name ="CustomerName " required >
19- </ div >
20- < div >
21- < label for ="CustomerNumber "> Customer Number:</ label >
22- < input type ="number " id ="CustomerNumber " name ="CustomerNumber " required >
19+ < input type ="text " id ="CustomerName " name ="CustomerName " required pattern =".*\S.*\S.* " title ="Enter at least two non-space characters ">
2320 </ div >
2421 < div >
2522 < label for ="CustomerEmail "> Customer Email:</ label >
@@ -35,6 +32,7 @@ <h1>Product Pick</h1>
3532 < div >
3633 < label for ="T-ShirtsColor "> T-Shirt Color:</ label >
3734 < select id ="T-ShirtsColor " name ="T-ShirtsColor " required >
35+ < option value ="" selected disabled > Choose a color</ option >
3836 < option value ="Red "> Red</ option >
3937 < option value ="Blue "> Blue</ option >
4038 < option value ="Green "> Green</ option >
@@ -43,6 +41,7 @@ <h1>Product Pick</h1>
4341 < div >
4442 < label for ="T-ShirtsSize "> T-Shirt Size:</ label >
4543 < select id ="T-ShirtsSize " name ="T-ShirtsSize " required >
44+ < option value ="" selected disabled > Choose a size</ option >
4645 < option value ="XS "> XS</ option >
4746 < option value ="S "> S</ option >
4847 < option value ="M "> M</ option >
@@ -51,15 +50,13 @@ <h1>Product Pick</h1>
5150 < option value ="XXL "> XXL</ option >
5251 </ select >
5352 </ div >
54- </ div >
5553 < div >
5654 < button type ="submit "> Place Order</ button >
5755 </ div >
58- </ form >
56+ </ form >
5957 </ main >
6058 < footer >
61- <!-- change to your name-->
62- < p > By HOMEWORK SOLUTION</ p >
59+ < p > By Carol Nassuna</ p >
6360 </ footer >
6461 </ body >
6562</ html >
0 commit comments