Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (53 loc) · 1.82 KB
/
Copy pathindex.html
File metadata and controls
53 lines (53 loc) · 1.82 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
51
52
53
<!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>
<h2>Customer information</h2>
<!-- Customer name must contain at least two non-space characters.-->
<label for="name">Name:</label>
<input type="text" id="name" pattern=".*\S.*\S.*" required>
<br><br>
<!-- Customer email must be valid and follow a consistent email address pattern.-->
<label for="email">Email:</label>
<input type="email" id="email" required>
<!-- Provide 3 T-shirt colour options.-->
<h2>T-Shirt Colour</h2>
<label for="colour">Choose colour:</label>
<select id="colour" name="colour" required>
<option value=""></option>
<option value="black">Black</option>
<option value="white">White</option>
<option value="pink">Pink</option>
</select>
<!-- Provide 6 size options: XS, S, M, L, XL, XXL-->
<h2>T-shirt size</h2>
<lable for="size">Choose size:</lable>
<select id="size" name="size" required>
<option value=""></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>
<!-- change to your name-->
<p>By Abakar Souleyman</p>
</footer>
</body>
</html>