Skip to content

Commit 1595c53

Browse files
committed
html update
1 parent c44123d commit 1595c53

1 file changed

Lines changed: 53 additions & 9 deletions

File tree

Form-Controls/index.html

Lines changed: 53 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,71 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6-
<title>My form exercise</title>
7-
<meta name="description" content="" />
6+
<title>T-Shirt Order Form</title>
7+
<meta name="description" content="T-Shirt order form" />
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
99
</head>
10+
1011
<body>
1112
<header>
1213
<h1>Product Pick</h1>
1314
</header>
15+
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+
<!-- Customer name: at least two non-space characters -->
19+
<label for="customer-name">Name</label>
20+
<input
21+
type="text"
22+
id="customer-name"
23+
name="customer-name"
24+
pattern=".*\S.*\S.*"
25+
required
26+
/>
27+
28+
<!-- Customer email: must be a valid email -->
29+
<label for="customer-email">Email</label>
30+
<input
31+
type="email"
32+
id="customer-email"
33+
name="customer-email"
34+
required
35+
/>
36+
37+
<!-- T-shirt colour: choose one of three options -->
38+
<fieldset>
39+
<legend>T-Shirt Colour</legend>
40+
41+
<input type="radio" id="red" name="colour" value="red" required />
42+
<label for="red">Red</label>
43+
44+
<input type="radio" id="blue" name="colour" value="blue" />
45+
<label for="blue">Blue</label>
46+
47+
<input type="radio" id="black" name="colour" value="black" />
48+
<label for="black">Black</label>
49+
</fieldset>
50+
51+
<!-- T-shirt size: choose one of six options -->
52+
<label for="size">Size</label>
53+
<select id="size" name="size" required>
54+
<option value="">Select a size</option>
55+
<option value="XS">XS</option>
56+
<option value="S">S</option>
57+
<option value="M">M</option>
58+
<option value="L">L</option>
59+
<option value="XL">XL</option>
60+
<option value="XXL">XXL</option>
61+
</select>
62+
63+
<button type="submit">Submit Order</button>
2064
</form>
2165
</main>
66+
2267
<footer>
23-
<!-- change to your name-->
24-
<p>By HOMEWORK SOLUTION</p>
68+
<p>By Eunice Mutanda</p>
2569
</footer>
2670
</body>
2771
</html>

0 commit comments

Comments
 (0)