Skip to content

Commit 73456f8

Browse files
author
Diana Ausiejute
committed
Add submit button
1 parent 5b80055 commit 73456f8

1 file changed

Lines changed: 16 additions & 21 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,30 @@ <h1>Product Pick</h1>
1414
<main>
1515
<form>
1616

17+
1718

18-
<label for="name">Name:</label><br>
19+
<label for="name"> Name: </label><br>
1920
<input type="text" id="name" name="name" pattern=".*\S.*\S.*" required><br>
2021
<label for="email">Email:</label><br>
2122
<input type="email" id="email" name="email" required><br><br>
2223

2324

24-
<fieldset>
25-
<legend>T-shirt color</legend>
26-
25+
26+
<p>
27+
<label for="color">T-shirt Color</label>
28+
</p>
2729
<input type="radio" id="blue" name="color" value="B" />
2830
<label for="blue">Blue</label><br />
2931

3032
<input type="radio" id="green" name="color" value="G" />
3133
<label for="green">Green</label><br />
3234

3335
<input type="radio" id="red" name="color" value="R" />
34-
<label for="red">Red</label>
35-
</fieldset>
36-
<br>
36+
<label for="red">Red</label> <br><br>
37+
38+
3739

38-
<label for="size">T-shirt size:</label>
40+
<label for="size">T-shirt Size:</label>
3941
<select id="size" name="size" required>
4042
<option value="">Select Size</option>
4143
<option value="xs">XS</option>
@@ -44,23 +46,16 @@ <h1>Product Pick</h1>
4446
<option value="l">L</option>
4547
<option value="xl">XL</option>
4648
<option value="xxl">XXL</option>
47-
</select>
49+
</select> <br> <br>
50+
51+
<input type="submit" value="Submit" /> <br> <br>
52+
4853

4954
</form>
5055
</main>
5156
<footer>
52-
<!-- change to your name-->
53-
<p>By HOMEWORK SOLUTION</p>
57+
58+
<p>By Diana Ausiejute</p>
5459
</footer>
5560
</body>
5661
</html>
57-
58-
59-
<!--
60-
NAME [at least 2 non space char]. .*\S.*\S.*
61-
62-
EMAIL [valid]
63-
64-
T-SHIRT COLOR [3 options, 1 choice only; radio]
65-
66-
SIZE [6 options, xs, s, m, l, xl, xxl ]-->

0 commit comments

Comments
 (0)