1- <!DOCTYPE html>
2- < 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- <!-- 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-->
20- </ form >
21- </ main >
22- < footer >
23- <!-- change to your name-->
24- < h2 > By HOMEWORK SOLUTION</ h2 >
25- </ footer >
26- </ body >
27- </ html >
1+ < html lang ="en " title ="Checking Form ">
2+
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < title > Checking Form</ title >
7+ < style >
8+ body {
9+ font-family : Arial, sans-serif;
10+ background-color : hsl (0 , 2% , 20% );
11+ display : flex;
12+ justify-content : center;
13+ align-items : center;
14+ height : 100vh ;
15+ margin : 0 ;
16+ }
17+
18+ .customer-form {
19+ background-color : # ffffff ;
20+ padding : 40px ;
21+ border-radius : 8px ;
22+ box-shadow : 0 0 10px rgba (0 , 0 , 0 , 0.1 );
23+ width : 300px ;
24+ }
25+
26+ .customer-form label {
27+ margin-bottom : 5px ;
28+ color : # 1a1a1a ; /* dark grey text */
29+ background-color : transparent;
30+ }
31+
32+ .customer-form button {
33+ width : 100% ;
34+ padding : 10px ;
35+ background-color : # 0056b3 ; /* darker blue */
36+ color : # ffffff ;
37+ border : none;
38+ border-radius : 4px ;
39+ cursor : pointer;
40+ font-size : 16px ;
41+ }
42+
43+ .custojmer-form button : hover {
44+ background-color : # 003f8a ;
45+ }
46+ </ style >
47+ </ head >
48+
49+ < body >
50+ < main >
51+ < form class ="customer-form " title ="checking ">
52+
53+ < H1 > Checking Form:</ H1 >
54+
55+ < div >
56+ < label for ="customer-name "> Customer's name : </ label >
57+ < input id ="customer-name " name ="customer-name " type ="text " required pattern =".*\S.*\S.* "
58+ title ="Please enter at least two non-space characters. " />
59+
60+ </ div >
61+
62+ < p > </ p >
63+
64+ < div >
65+ < label for ="customer-email "> Customer's email : </ label >
66+ < input id ="customer-email " name ="customer-email " type ="email " required />
67+
68+ </ div >
69+
70+ < p > </ p >
71+
72+ < div >
73+ < label for ="tshirt-colour "> T-shirt Color : </ label >
74+ < select id ="tshirt-colour " name ="tshirt-colour " required >
75+ < option value ="" disabled selected > Select a colour</ option >
76+ < option value ="red "> Red</ option >
77+ < option value ="blue "> Blue</ option >
78+ < option value ="black "> Black</ option >
79+ </ select >
80+
81+ </ div >
82+ < p > </ p >
83+ < div >
84+ < label for ="tshirt-size "> T-shirt size required : </ label >
85+ < select id ="tshirt-size " name ="tshirt-size " required >
86+ < option value ="" disabled selected > Select a size</ option >
87+ < option value ="XS "> XS</ option >
88+ < option value ="S "> S</ option >
89+ < option value ="M "> M</ option >
90+ < option value ="L "> L</ option >
91+ < option value ="XL "> XL</ option >
92+ < option value ="XXL "> XXL</ option >
93+ </ select >
94+
95+ </ div >
96+ < p > </ p >
97+ < button type ="submit "> Submit checking</ button >
98+ </ form >
99+ </ main >
100+ </ body >
101+ </ html >
0 commit comments