Skip to content

Commit b0b98b7

Browse files
committed
finish the Form-Controls tasks
1 parent 2bc08bd commit b0b98b7

File tree

1 file changed

+61
-1
lines changed

1 file changed

+61
-1
lines changed

Form-Controls/index.html

+61-1
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,76 @@
1212
<h1>Product Pick</h1>
1313
</header>
1414
<main>
15+
1516
<form>
1617
<!-- write your html here-->
1718
<!--
1819
try writing out the requirements first as comments
1920
this will also help you fill in your PR message later-->
21+
<label for="fname">First name:</label><br>
22+
<input type="text" id="fname" name="fname" value="Your first name" required><br>
23+
<label for="lname">Last name:</label><br>
24+
<input type="text" id="lname" name="lname" value="Your last name" required><br>
25+
<!-- ######## -->
26+
<label for="email">Email:</label><br>
27+
<input type="email" id="email" name="email" value="Your email address" required><br>
28+
<!-- ######### -->
29+
<p>Choose your favorite colour of for the t-shirt:</p>
30+
<input type="radio" id="Green" name="fav_colour" value="Green" style="font-size: 24px">
31+
<label for="Green">Green</label><br>
32+
33+
<input type="radio" id="Yellow" name="fav_colour" value="Yellow">
34+
<label for="Yellow">Yellow</label><br>
35+
36+
<input type="radio" id="Blue" name="fav_colour" value="Blue">
37+
<label for="Blue">Blue</label><br>
38+
39+
<!-- ############ -->
40+
<p>Choose the size of for the t-shirt:</p>
41+
42+
<input type="radio" id="xs" name="t_shirt_size" value="xs" required>
43+
<label for="xs">XS</label><br>
44+
45+
<input type="radio" id="s" name="t_shirt_size" value="s">
46+
<label for="s">S</label><br>
47+
48+
<input type="radio" id="m" name="t_shirt_size" value="m">
49+
<label for="m">M</label><br>
50+
51+
<input type="radio" id="l" name="t_shirt_size" value="l">
52+
<label for="l">L</label><br>
53+
54+
<input type="radio" id="xl" name="t_shirt_size" value="xl">
55+
<label for="xl">XL</label><br>
56+
57+
<input type="radio" id="xll" name="t_shirt_size" value="xll">
58+
<label for="xll">XLL</label><br>
59+
2060
</form>
61+
<style>
62+
63+
input[type="radio"] {
64+
width: 30px;
65+
height: 30px;
66+
margin-right: 12px;
67+
vertical-align: middle;
68+
}
69+
70+
71+
label {
72+
font-size: 18px;
73+
padding: 15px;
74+
display: inline-block;
75+
cursor: pointer;
76+
margin-bottom: 15px;
77+
}
78+
79+
80+
</style>
2181
</main>
2282
<footer>
2383
<!-- change to your name-->
24-
<h2>By HOMEWORK SOLUTION</h2>
84+
<h2>By Ahmed Mahmoud</h2>
2585
</footer>
2686
</body>
2787
</html>

0 commit comments

Comments
 (0)