Skip to content

Commit e9f2365

Browse files
committed
Add accessible T-shirt order form
1 parent d28242a commit e9f2365

1 file changed

Lines changed: 72 additions & 0 deletions

File tree

Form-Controlsindex.html/index.html

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<title>T-Shirt Order Form</title>
8+
<meta name="description" content="Choose a colour and size for your T-shirt order.">
9+
<meta name="viewport" content="width=device-width, initial-scale=1">
10+
</head>
11+
12+
<body>
13+
<header>
14+
<h1>Product Pick</h1>
15+
</header>
16+
17+
<main>
18+
<form>
19+
<p>
20+
<label for="customer-name">Full name:</label>
21+
<input type="text" id="customer-name" name="customer-name" pattern=".*\S.*\S.*"
22+
title="Please enter at least two non-space characters." autocomplete="name" required>
23+
</p>
24+
25+
<p>
26+
<label for="customer-email">Email address:</label>
27+
<input type="email" id="customer-email" name="customer-email" autocomplete="email" required>
28+
</p>
29+
30+
<fieldset>
31+
<legend>Choose a T-shirt colour:</legend>
32+
33+
<p>
34+
<input type="radio" id="black" name="tshirt-colour" value="black" required>
35+
<label for="black">Black</label>
36+
</p>
37+
38+
<p>
39+
<input type="radio" id="white" name="tshirt-colour" value="white">
40+
<label for="white">White</label>
41+
</p>
42+
43+
<p>
44+
<input type="radio" id="blue" name="tshirt-colour" value="blue">
45+
<label for="blue">Blue</label>
46+
</p>
47+
</fieldset>
48+
49+
<p>
50+
<label for="tshirt-size">Choose a T-shirt size:</label>
51+
52+
<select id="tshirt-size" name="tshirt-size" required>
53+
<option value="">Select a size</option>
54+
<option value="XS">XS</option>
55+
<option value="S">S</option>
56+
<option value="M">M</option>
57+
<option value="L">L</option>
58+
<option value="XL">XL</option>
59+
<option value="XXL">XXL</option>
60+
</select>
61+
</p>
62+
63+
<button type="submit">Place order</button>
64+
</form>
65+
</main>
66+
67+
<footer>
68+
<p>By Gloria Thabisile Malindi</p>
69+
</footer>
70+
</body>
71+
72+
</html>

0 commit comments

Comments
 (0)