Skip to content

Commit a067fbc

Browse files
fix alignment
1 parent ef2b8b3 commit a067fbc

File tree

1 file changed

+54
-7
lines changed

1 file changed

+54
-7
lines changed

Form-Controls/index.html

Lines changed: 54 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,64 @@
1111
<header>
1212
<h1>Product Pick</h1>
1313
</header>
14-
<main>
1514
<form>
16-
<!-- write your html here-->
17-
<!--
18-
try writing out the requirements first as comments
19-
this will also help you fill in your PR message later-->
20-
</form>
15+
16+
17+
<div>
18+
<label for="name">Name:</label>
19+
<input type="text" id="name" name="name" required minlength="2" pattern="[A-Za-z ]{2,}"
20+
placeholder="Enter your full name" aria-required="true">
21+
<small>Minimum 2 alphabetical characters (required)</small>
22+
</div>
23+
24+
<!-- Email Field -->
25+
<div>
26+
<label for="email">Email:</label>
27+
<input type="email" id="email" name="email" required
28+
placeholder="[email protected]" aria-required="true">
29+
<small>Required for order confirmation</small>
30+
</div>
31+
32+
<!-- T-shirt Options -->
33+
<fieldset>
34+
<legend>Choose T-shirt Color</legend>
35+
<div>
36+
<input type="radio" id="color-red" name="color" value="red" required>
37+
<label for="color-red">Red</label><br>
38+
39+
<input type="radio" id="color-blue" name="color" value="blue">
40+
<label for="color-blue">Blue</label><br>
41+
42+
<input type="radio" id="color-green" name="color" value="green">
43+
<label for="color-green">Green</label>
44+
</div>
45+
</fieldset>
46+
47+
<!-- Size Selection -->
48+
<fieldset>
49+
<legend>Choose T-shirt Size</legend>
50+
<div>
51+
<label for="size">Size:</label>
52+
<select id="size" name="size" required>
53+
<option value="" disabled selected>-- Please select --</option>
54+
<option value="XS">XS</option>
55+
<option value="S">S</option>
56+
<option value="M">M</option>
57+
<option value="L">L</option>
58+
<option value="XL">XL</option>
59+
<option value="XXL">XXL</option>
60+
</select>
61+
</div>
62+
</fieldset>
63+
64+
<button type="submit">Place Order</button>
65+
66+
67+
</form>
2168
</main>
2269
<footer>
2370
<!-- change to your name-->
24-
<h2>By HOMEWORK SOLUTION</h2>
71+
<h2>Mouawia Elkhalifa</h2>
2572
</footer>
2673
</body>
2774
</html>

0 commit comments

Comments
 (0)