33< head >
44 < meta charset ="UTF-8 ">
55 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6- < title > T-shirt order </ title >
6+ < title > T-shirt Order Form </ title >
77</ head >
8- < body >
98
9+ < body >
1010 < main >
1111 < h1 > T-shirt Order</ h1 >
1212
1313 < form >
14+
1415 < fieldset >
1516 < legend > Customer Details</ legend >
1617
1718 < label for ="customerName "> Name</ label >
18- < input type ="text " id ="customerName " name ="name " minlength ="2 " required >
19+ < input
20+ type ="text "
21+ id ="customerName "
22+ name ="name "
23+ minlength ="2 "
24+ required
25+ pattern =".*\S.* "
26+ title ="Please enter at least one non-space character "
27+ autocomplete ="name "
28+ >
1929
2030 < label for ="customerEmail "> Email</ label >
21- < input type ="email " id ="customerEmail " name ="email " required >
31+ < input
32+ type ="email "
33+ id ="customerEmail "
34+ name ="email "
35+ required
36+ autocomplete ="email "
37+ >
2238 </ fieldset >
2339
2440 < fieldset >
2541 < legend > T-shirt Options</ legend >
2642
2743 < label for ="tshirtColour "> Choose a Colour</ label >
2844 < select id ="tshirtColour " name ="colour " required >
29- < option value =""> --Select--</ option >
45+ < option value =""> -- Select a colour --</ option >
3046 < option value ="red "> Red</ option >
3147 < option value ="green "> Green</ option >
3248 < option value ="blue "> Blue</ option >
3349 </ select >
3450
3551 < label for ="tshirtSize "> Choose a Size</ label >
3652 < select id ="tshirtSize " name ="size " required >
37- < option value =""> --Select--</ option >
53+ < option value =""> -- Select a size --</ option >
3854 < option value ="xs "> XS</ option >
3955 < option value ="s "> S</ option >
4056 < option value ="m "> M</ option >
@@ -47,6 +63,5 @@ <h1>T-shirt Order</h1>
4763 < button type ="submit "> Order</ button >
4864 </ form >
4965 </ main >
50-
5166</ body >
5267</ html >
0 commit comments