Skip to content

Commit f643ddb

Browse files
update original form controls
1 parent 5eb90bc commit f643ddb

1 file changed

Lines changed: 8 additions & 43 deletions

File tree

Form-Controls/index.html

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,27 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="utf-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
4+
<meta charset="utf-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<title>My form exercise</title>
7-
<meta name="description" content="">
8-
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<meta name="description" content="" />
8+
<meta name="viewport" content="width=device-width, initial-scale=1" />
99
</head>
1010
<body>
1111
<header>
1212
<h1>Product Pick</h1>
1313
</header>
1414
<main>
1515
<form>
16-
<label for="user-name">Your Name:</label>
17-
<input id="user-name" type="text" pattern="[A-Za-z\s]{2,}" title="Please enter at least 2 letters. Numbers and symbols are not allowed" required>
18-
19-
20-
<br>
21-
22-
<label for="email">Your Email:</label>
23-
<input id="email" type="email" required>
24-
<button id="go"> Go
25-
</button>
26-
27-
<br>
28-
29-
<label for="colors">Choose your favorite color:</label>
30-
<select id="colors" name="colour" required>
31-
<option value="" disabled selected>Select a color...</option>
32-
<option value="red">Red</option>
33-
<option value="blue">Blue</option>
34-
<option value="green">Green</option>
35-
</select>
36-
37-
<br>
38-
39-
<label for="shirtsize">What size do you want?</label>
40-
41-
<select id="shirtsize" name="size" required>
42-
<option value="" disabled selected>Select a size...</option>
43-
<option value="red">S</option>
44-
<option value="blue">M</option>
45-
<option value="green">L</option>
46-
<option value="green">XL</option>
47-
<option value="green">XXL</option>
48-
</select>
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-->
4920
</form>
5021
</main>
5122
<footer>
5223
<!-- change to your name-->
5324
<p>By HOMEWORK SOLUTION</p>
5425
</footer>
5526
</body>
56-
</html>
57-
<footer>
58-
<!-- change to your name-->
59-
<p>By HOMEWORK SOLUTION</p>
60-
</footer>
61-
</body>
6227
</html>

0 commit comments

Comments
 (0)