Skip to content

Commit ce896eb

Browse files
committed
Create Product Pick form
1 parent ff7b9d0 commit ce896eb

1 file changed

Lines changed: 40 additions & 4 deletions

File tree

Form-Controls/index.html

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,61 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<link rel="stylesheet" href="./style.css">
67
<title>My form exercise</title>
78
<meta name="description" content="" />
89
<meta name="viewport" content="width=device-width, initial-scale=1" />
910
</head>
1011
<body>
12+
<div class="container">
1113
<header>
1214
<h1>Product Pick</h1>
1315
</header>
1416
<main>
1517
<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-->
18+
<div class="field">
19+
<label for="customer_name">Name :</label>
20+
<input minlength="2" required type="text" id="customer_name" name="customer_name">
21+
</div>
22+
<div class="field">
23+
<label for="email">Email :</label>
24+
<input required type="email" name="email" id="email">
25+
</div>
26+
<div class="field">
27+
<label for="colour">Colour choice :</label>
28+
<select required id="colour" name="colour">
29+
<option selected value="">--Please Select--</option>
30+
<option value="red">Red</option>
31+
<option value="black">Black</option>
32+
<option value="white">White</option>
33+
</select>
34+
</div>
35+
<div class="field">
36+
<label for="size">Size :</label>
37+
<select required id="size" name="size">
38+
<option selected value="">--Please Select--</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+
<div class="submit_field">
49+
<input class="submit_button" type="submit" value="Submit">
50+
</div>
51+
52+
53+
54+
2055
</form>
2156
</main>
2257
<footer>
2358
<!-- change to your name-->
2459
<p>By HOMEWORK SOLUTION</p>
2560
</footer>
61+
</div>
2662
</body>
2763
</html>

0 commit comments

Comments
 (0)