Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (59 loc) · 1.9 KB
/
Copy pathindex.html
File metadata and controls
73 lines (59 loc) · 1.9 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!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">
<link rel="stylesheet" href="formstyle.css">
</head>
<body>
<header>
<h1>Pick Your Favourite T-Shirt</h1>
</header>
<main>
<form>
<div>
<label for="name">Your Name:</label>
<input type="text" id="name" name="name" placeholder="Enter Your Name" pattern="\S{2,}" required />
</div>
<div>
<label for="email">Your Email:</label>
<input type="email" id="email" name="email" placeholder="Enter Your Email" required />
</div>
<div>
<p>Pick Your Favourite Color:</p>
<div class="radio-group">
<input type="radio" id="red" name="color" value="red" required>
<label for="red">Red</label>
</div>
<div class="radio-group">
<input type="radio" id="green" name="color" value="green" required>
<label for="green">Green</label>
</div>
<div class="radio-group">
<input type="radio" id="blue" name="color" value="blue" required>
<label for="blue">Blue</label>
</div>
</div>
<div>
<label for="size">Choose Your T-Shirt Size:</label>
<select id="size" name="size" required>
<option value="">Select Size</option>
<option value="xsmall">XS</option>
<option value="small">S</option>
<option value="medium">M</option>
<option value="large">L</option>
<option value="xlarge">XL</option>
<option value="xxlarge">XXL</option>
</select>
</div>
<button type="submit">Submit</button>
</form>
</main>
<footer>
<p>By Yonatan Teklemariam</p>
</footer>
</body>
</html>