Skip to content

Commit 741a57f

Browse files
committed
Fix form structure and remove accidental file
1 parent e9f2365 commit 741a57f

2 files changed

Lines changed: 69 additions & 97 deletions

File tree

Form-Controls/index.html

Lines changed: 69 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,71 @@
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>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+
</html>

Form-Controlsindex.html/index.html

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)