Skip to content

Commit 1b5bda1

Browse files
committed
Update project
1 parent 307611d commit 1b5bda1

1 file changed

Lines changed: 34 additions & 15 deletions

File tree

Form-Controls/index.html

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,46 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<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" />
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Product Pick</title>
7+
<link rel="stylesheet" href="style.css" />
98
</head>
9+
1010
<body>
11-
<header>
12-
<h1>Product Pick</h1>
13-
</header>
1411
<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-->
12+
<h1>Product Pick</h1>
13+
14+
<form action="result.html" method="GET">
15+
<fieldset>
16+
<legend>Choose your T-shirt</legend>
17+
18+
<label for="name">Name:</label>
19+
<input type="text" id="name" name="name" required />
20+
21+
<label for="colour">Colour:</label>
22+
<select id="colour" name="colour" required>
23+
<option value="">Select a colour</option>
24+
<option value="Black">Black</option>
25+
<option value="White">White</option>
26+
<option value="Blue">Blue</option>
27+
</select>
28+
29+
<label for="size">Size:</label>
30+
<select id="size" name="size" required>
31+
<option value="">Select a size</option>
32+
<option value="Small">Small</option>
33+
<option value="Medium">Medium</option>
34+
<option value="Large">Large</option>
35+
</select>
36+
37+
<button type="submit">Submit</button>
38+
</fieldset>
2039
</form>
2140
</main>
41+
2242
<footer>
23-
<!-- change to your name-->
24-
<h2>By HOMEWORK SOLUTION</h2>
43+
<h2>By Alasdair MacDonald</h2>
2544
</footer>
2645
</body>
2746
</html>

0 commit comments

Comments
 (0)