Skip to content

Commit 7b41ae7

Browse files
committed
Added form code
1 parent d28242a commit 7b41ae7

2 files changed

Lines changed: 35 additions & 2 deletions

File tree

‎Form-Controls/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Do not write a form action for this project.
4040
Let's write out our testable criteria. Check each one off as you complete it.
4141

4242
- [ ] I have only used HTML and CSS.
43-
- [ ] I have not used any JavaScript.
43+
- [ ] I have not used any JavaScrip
4444

4545
### HTML
4646

‎Form-Controls/index.html‎

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,44 @@ <h1>Product Pick</h1>
1717
<!--
1818
try writing out the requirements first as comments
1919
this will also help you fill in your PR message later-->
20+
<label for="name">Customer Name:</label>
21+
<input type="text" id="name" min length="2" required>
22+
23+
<label for="email">Customer Email</label>
24+
<input type="email" id="email" name="email" required>
25+
26+
<fieldset>
27+
<legend>T-shirt color:</legend>
28+
29+
<input type="radio" id="blue" name="color" value="blue" required>
30+
<label for=blue>Blue</label>
31+
32+
<input type="radio" id="black" name="color" value="black" required>
33+
<label for=black>Black</label>
34+
35+
<input type="radio" id="grey" name="color" value="grey" required>
36+
<label for=grey>Grey</label>
37+
38+
<label for="size">
39+
<select id="size" name="size" required>
40+
<option value="">--select a size--</option>
41+
<option value="XS">XS</option>
42+
<option value="S">S</option>
43+
<option value="M">M</option>
44+
<option value="L">L</option>
45+
<option value="X">X</option>
46+
<option value="XL">XL</option>
47+
<option value="XXL">XXL</option>
48+
</select>
49+
50+
<button>Submit</button>
51+
</fieldset>
52+
2053
</form>
2154
</main>
2255
<footer>
2356
<!-- change to your name-->
24-
<p>By HOMEWORK SOLUTION</p>
57+
<p>By Raees Stevens</p>
2558
</footer>
2659
</body>
2760
</html>

0 commit comments

Comments
 (0)