Skip to content

Commit 0606b09

Browse files
committed
Add basic HTML form structure
1 parent ff7b9d0 commit 0606b09

1 file changed

Lines changed: 24 additions & 8 deletions

File tree

Form-Controls/index.html

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,41 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6-
<title>My form exercise</title>
6+
<title>Product Picker Form</title>
77
<meta name="description" content="" />
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
99
</head>
1010
<body>
1111
<header>
12-
<h1>Product Pick</h1>
12+
<h1>Choose your product</h1>
1313
</header>
1414
<main>
1515
<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-->
16+
<!-- Requirements:
17+
- Ask for user name
18+
- Ask for product type
19+
- Ask for quantity
20+
- Add validation
21+
-->
22+
23+
<label for="name">Your Name:</label>
24+
<input id="name" name="name" type="text" required />
25+
<label for="product">Product:</label>
26+
<select id="product" name="product" required>
27+
<option value="">Select one</option>
28+
<option value="shoes">Shoes</option>
29+
<option value="bag">Bag</option>
30+
<option value="hat">Hat</option>
31+
</select>
32+
33+
<label for="qty">Quantity:</label>
34+
<input id="qty" name="qty" type="number" min="1" max="10" required />
35+
36+
<button type="submit">Submit</button>
2037
</form>
2138
</main>
2239
<footer>
23-
<!-- change to your name-->
24-
<p>By HOMEWORK SOLUTION</p>
40+
<p>By Niangh Ciang</p>
2541
</footer>
2642
</body>
2743
</html>

0 commit comments

Comments
 (0)