Skip to content

Commit c70acaf

Browse files
committed
complete form control html
1 parent 2bc08bd commit c70acaf

File tree

1 file changed

+44
-4
lines changed

1 file changed

+44
-4
lines changed

Form-Controls/index.html

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,59 @@
99
</head>
1010
<body>
1111
<header>
12-
<h1>Product Pick</h1>
12+
<h1>T-shirt order form</h1>
1313
</header>
1414
<main>
15-
<form>
15+
1616
<!-- write your html here-->
1717
<!--
1818
try writing out the requirements first as comments
19-
this will also help you fill in your PR message later-->
19+
this will also help you fill in your PR message later--
20+
//requierment
21+
//1- collect customer valid name (at least 2 character )
22+
//2-customer email address (valid email address )
23+
//3-allow customer to choose one color from defined three colors
24+
// 4-allow customer to choose one size from defined six size
25+
26+
<form action="" method="POST">
27+
<h1>T-Shirt Order Form</h1>
28+
29+
<!--Customer's Name -->
30+
<label for="name">What is your name?</label>
31+
<input type="text" id="name" name="name" required minlength="2" placeholder="Enter your full name">
32+
33+
<!-- Customer's Email -->
34+
<label for="email">What is your email?</label>
35+
<input type="email" id="email" name="email" required placeholder="Enter a valid email">
36+
37+
<!-- T-Shirt Colour -->
38+
<label for="colour">What colour should this t-shirt be?</label>
39+
<select id="colour" name="colour" required>
40+
<option value="">Select a colour</option>
41+
<option value="red">Red</option>
42+
<option value="blue">Blue</option>
43+
<option value="green">Green</option>
44+
</select>
45+
46+
<!-- T-Shirt Size -->
47+
<label for="size">What size would you like?</label>
48+
<select id="size" name="size" required>
49+
<option value="">Select a size</option>
50+
<option value="XS">XS</option>
51+
<option value="S">S</option>
52+
<option value="M">M</option>
53+
<option value="L">L</option>
54+
<option value="XL">XL</option>
55+
<option value="XXL">XXL</option>
56+
</select>
57+
58+
<!-- Submit Button -->
59+
<button type="submit">Submit Order</button>
2060
</form>
2161
</main>
2262
<footer>
2363
<!-- change to your name-->
24-
<h2>By HOMEWORK SOLUTION</h2>
64+
<h2>By SARA AMIRI </h2>
2565
</footer>
2666
</body>
2767
</html>

0 commit comments

Comments
 (0)