Skip to content

Commit d845fd4

Browse files
committed
create form
1 parent a575a36 commit d845fd4

File tree

1 file changed

+53
-1
lines changed

1 file changed

+53
-1
lines changed

Form-Controls/index.html

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,68 @@
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<title>My form exercise</title>
7-
<meta name="description" content="" />
7+
<meta name="description" content="T-shirt order form" />
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
99
</head>
1010
<body>
1111
<header>
1212
<h1>Product Pick</h1>
1313
</header>
14+
1415
<main>
1516
<form>
1617
<!-- write your html here-->
18+
<!-- Customer Name -->
19+
<label for="name">Full Name:</label>
20+
<input
21+
type="text"
22+
id="name"
23+
name="name"
24+
required
25+
minlength="2"
26+
placeholder="Enter your full name"
27+
/>
28+
<br /><br />
29+
30+
<!-- Email -->
31+
<label for="email">Email Address:</label>
32+
<input
33+
type="email"
34+
id="email"
35+
name="email"
36+
required
37+
placeholder="example@example.com"
38+
/>
39+
<br /><br />
40+
41+
<!-- T-shirt Colour -->
42+
<fieldset>
43+
<legend>Choose your T-shirt colour:</legend>
44+
<input type="radio" id="red" name="color" value="Red" required />
45+
<label for="red">Red</label><br />
46+
47+
<input type="radio" id="blue" name="color" value="Blue" />
48+
<label for="blue">Blue</label><br />
49+
50+
<input type="radio" id="black" name="color" value="Black" />
51+
<label for="black">Black</label>
52+
</fieldset>
53+
<br />
54+
55+
<!-- T-shirt Size -->
56+
<label for="size">Choose your T-shirt size:</label>
57+
<select id="size" name="size" required>
58+
<option value="" disabled selected>Select size</option>
59+
<option value="XS">XS</option>
60+
<option value="S">S</option>
61+
<option value="M">M</option>
62+
<option value="L">L</option>
63+
<option value="XL">XL</option>
64+
<option value="XXL">XXL</option>
65+
</select>
66+
<br /><br />
67+
68+
<button type="submit">Submit Order</button>
1769
<!--
1870
try writing out the requirements first as comments
1971
this will also help you fill in your PR message later-->

0 commit comments

Comments
 (0)