Skip to content

Commit e96da40

Browse files
authored
Create Form-Control
1 parent 72fe02b commit e96da40

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

Form-Control

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<html lang="en">
2+
<head>
3+
<meta charset="UTF-8">
4+
<title>T-shirt Order Form</title>
5+
</head>
6+
<body>
7+
8+
<form>
9+
<fieldset>
10+
<legend>Customer Information</legend>
11+
12+
<label for="name">Full name:</label><br>
13+
<input
14+
type="text"
15+
id="name"
16+
name="name"
17+
required
18+
minlength="2"
19+
>
20+
<br><br>
21+
22+
<label for="email">Email address:</label><br>
23+
<input
24+
type="email"
25+
id="email"
26+
name="email"
27+
required
28+
>
29+
</fieldset>
30+
31+
<br>
32+
33+
<fieldset>
34+
<legend>T-shirt Details</legend>
35+
36+
<p>Choose a colour:</p>
37+
38+
<input type="radio" id="red" name="colour" value="red" required>
39+
<label for="red">Red</label><br>
40+
41+
<input type="radio" id="blue" name="colour" value="blue">
42+
<label for="blue">Blue</label><br>
43+
44+
<input type="radio" id="black" name="colour" value="black">
45+
<label for="black">Black</label>
46+
47+
<br><br>
48+
49+
<label for="size">Choose a size:</label><br>
50+
<select id="size" name="size" required>
51+
<option value="">-- Select a size --</option>
52+
<option value="XS">XS</option>
53+
<option value="S">S</option>
54+
<option value="M">M</option>
55+
<option value="L">L</option>
56+
<option value="XL">XL</option>
57+
<option value="XXL">XXL</option>
58+
</select>
59+
60+
</fieldset>
61+
62+
<br>
63+
64+
<button type="submit">Submit Order</button>
65+
</form>
66+
67+
</body>
68+
</html>

0 commit comments

Comments
 (0)