Skip to content

Commit e852363

Browse files
committed
In this commit i have created a form that allows users to select size, color and also has a submit button
1 parent c44123d commit e852363

1 file changed

Lines changed: 59 additions & 25 deletions

File tree

Form-Controls/index.html

Lines changed: 59 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,61 @@
11
<!DOCTYPE html>
22
<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-
<p>By HOMEWORK SOLUTION</p>
25-
</footer>
26-
</body>
27-
</html>
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
7+
<title>My form exercise</title>
8+
<meta name="description" content="form exercise demonstrating accessible form controls." />
9+
<meta name="viewport" content="width=device-width, initial-scale=1" />
10+
</head>
11+
12+
<body>
13+
<header>
14+
<h1>My Store T-shirt Sales</h1>
15+
</header>
16+
<main>
17+
<form>
18+
<div>
19+
<label for="name">Name</label>
20+
<input type="text" name="name" id="name" placeholder="Username" required>
21+
</div>
22+
23+
<div>
24+
<label for="email">Email</label>
25+
<input type="email" name="email" id="email" placeholder="Name@example.com" required>
26+
</div>
27+
28+
<div>
29+
<label for="color">Color</label>
30+
<select name="color" id="color" required>
31+
<option value="" disabled selected>-- select a color --</option>
32+
<option value="Black">Black</option>
33+
<option value="Blue">Blue</option>
34+
<option value="Green">Green</option>
35+
</select>
36+
</div>
37+
38+
<div>
39+
<label for="size">Size</label>
40+
<select name="size" id="size" required>
41+
<option value="" disabled selected> -- select a size --</option>
42+
<option value="XS">XS</option>
43+
<option value="S">S</option>
44+
<option value="M">M</option>
45+
<option value="L">L</option>
46+
<option value="XL">XL</option>
47+
<option value="XXL">XXL</option>
48+
</select>
49+
</div>
50+
<div>
51+
<!-- submit button -->
52+
<button type="submit">Submit Order</button>
53+
</div>
54+
</form>
55+
</main>
56+
<footer>
57+
<p>by Toluwalase Tiamiyu</p>
58+
</footer>
59+
</body>
60+
61+
</html>

0 commit comments

Comments
 (0)