Skip to content

Commit 3d6dea3

Browse files
HTML
1 parent ff7b9d0 commit 3d6dea3

1 file changed

Lines changed: 37 additions & 7 deletions

File tree

Form-Controls/index.html

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,54 @@
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<title>My form exercise</title>
7-
<meta name="description" content="" />
7+
<meta name="description" content="T-shirt order form where customers choose their size and colour." />
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
9+
910
</head>
1011
<body>
1112
<header>
1213
<h1>Product Pick</h1>
1314
</header>
14-
<main>
15+
<main class="container">
1516
<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-->
17+
18+
<div class="form-group">
19+
<label for="name">Name</label>
20+
<input type="text" name="name" id="name" required minlength="2" pattern=".*\S.*\S.*" placeholder="Enter your full name">
21+
</div>
22+
23+
<div class="form-group">
24+
<label for="email">Email</label>
25+
<input type="email" name="email" id="email" required placeholder="Enter your email">
26+
</div>
27+
<div class="form-group">
28+
<label for="colour">T-Shirt Colour</label>
29+
<select id="colour" name="colour" required>
30+
<option value="">Select a colour</option>
31+
<option value="black">Black</option>
32+
<option value="white">White</option>
33+
<option value="red">Red</option>
34+
</select>
35+
</div>
36+
<div class="form-group">
37+
<label for="size">T-Shirt Size</label>
38+
<select id="size" name="size" required>
39+
<option value="">Select a size</option>
40+
<option value="xs">XS</option>
41+
<option value="s">S</option>
42+
<option value="m">M</option>
43+
<option value="l">L</option>
44+
<option value="xl">XL</option>
45+
<option value="xxl">XXL</option>
46+
</select>
47+
</div>
48+
49+
<button type="submit">Place Order</button>
2050
</form>
2151
</main>
2252
<footer>
2353
<!-- change to your name-->
24-
<p>By HOMEWORK SOLUTION</p>
54+
<p>By Liyema Mfengwana</p>
2555
</footer>
2656
</body>
2757
</html>

0 commit comments

Comments
 (0)