11<!DOCTYPE html>
22< html lang ="en ">
33 < 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 " />
4+ < meta charset ="UTF-8 ">
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < title > T-Shirt Order Form</ title >
7+ < link rel ="stylesheet " href ="style.css ">
98 </ head >
109 < body >
11- < header >
12- < h1 > Product Pick</ h1 >
13- </ header >
14- < main >
10+ < main class ="container ">
11+ < h1 > T-Shirt Order Form</ h1 >
12+
1513 < form >
16- <!-- write your html here-->
17- <!--
18- try writing out the requirements first as comments
19- this will also help you fill in your PR message later-->
14+ < div >
15+ < label for ="name "> Full Name</ label >
16+ < input type ="text " id ="name "name ="name " minlength ="2 " pattern =".*\S.*\S.* "
17+ placeholder ="Enter your full name " required >
18+ </ div >
19+
20+ < div >
21+ < label for ="email "> Email Address</ label >
22+ < input type ="email " id ="email " name ="email " placeholder ="Enter your email " required >
23+ </ div >
24+
25+ < div >
26+ < label for ="colour "> T-Shirt Colour</ label >
27+ < select id ="colour " name ="colour " required >
28+ < option value =""> Select a colour</ option >
29+ < option value ="black "> Black</ option >
30+ < option value ="white "> White</ option >
31+ < option value ="blue "> Blue</ option >
32+ </ select >
33+ </ div >
34+
35+ < div >
36+ < label for ="size "> T-Shirt Size</ label >
37+ < select id ="size " name ="size " required >
38+ < option value =""> Select a size</ option >
39+ < option value ="xs "> XS</ option >
40+ < option value ="s "> S</ option >
41+ < option value ="m "> M</ option >
42+ < option value ="l "> L</ option >
43+ < option value ="xl "> XL</ option >
44+ < option value ="xxl "> XXL</ option >
45+ </ select >
46+ </ div >
47+
48+ < button type ="submit "> Place Order</ button >
2049 </ form >
2150 </ main >
22- < footer >
23- <!-- change to your name-->
24- < p > By HOMEWORK SOLUTION</ p >
25- </ footer >
51+
2652 </ body >
27- </ html >
53+ </ html >
0 commit comments