Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (50 loc) · 1.81 KB
/
Copy pathindex.html
File metadata and controls
50 lines (50 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>My form exercise</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<header>
<h1>Product Pick</h1>
</header>
<main>
<form>
<!-- Name: required, at least 2 non-space characters-->
<label for="Your-name">What is your name</label>
<input type="text" id="Your-name" pattern=".*\S.*\S.*" required />
<!-- Email: a valid email address-->
<label for="Email">Your email address</label>
<input type="email" id="Email" required />
<!-- Colour Any one from three options available-->
<fieldset>
<legend>Choose any one colour of your shirt</legend>
<input type="radio" name="colour" id="Red" value="Red" required />
<label for="Red">Red</label>
<input type="radio" name="colour" id="Green" value="Green" required />
<label for="Green">Green</label>
<input type="radio" name="colour" id="Blue" value="Blue" required />
<label for="Blue">Blue</label>
</fieldset>
<!-- Size 6 options: XS, S, M, L, XL, XXL-->
<label for="size">What size do you need?</label>
<select id="size" required>
<option value="">-- Select a size --</option>
<option value="XS">XS</option>
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
<option value="XXL">XXL</option>
</select>
<button type="submit">Submit</button>
</form>
</main>
<footer>
<p>By Alan Mak</p>
</footer>
</body>
</html>