Skip to content

Commit 772099e

Browse files
Restructure form elements and fix label typos in index.html
1 parent bcdc271 commit 772099e

1 file changed

Lines changed: 22 additions & 7 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,32 @@ <h1>Product Pick</h1>
1919
<!--
2020
try writing out the requirements first as comments
2121
this will also help you fill in your PR message later-->
22-
22+
<fieldset>
23+
<legend>Customer Details</legend>
2324
<p>
24-
<label for="name">Name</label>
25-
<input pattern="`.*\S.*\S.*`" type="text" for="name" id="name">
25+
<label for="name">Name</label>
26+
<input pattern="`.*\S.*\S.*`" type="text" for="name" id="name">
2627
</p>
27-
2828

2929
<p>
30-
<lable>Email</lable>
31-
<input type="email" for="email" id="email">
32-
</p>
30+
<lable>Email</lable>
31+
<input type="email" for="email" id="email">
32+
</p>
33+
</fieldset>
34+
35+
<fieldset>
36+
<legend>Choose a Color</legend>
37+
<lable >Red</lable>
38+
<input type="radio" id="Red" name="color" value="red" required>
39+
40+
<lable >white</lable>
41+
<input type="radio" id="white" name="color" value="white" required>
42+
43+
<lable >Black</lable>
44+
<input type="radio" id="black" name="color" value="black" required>
45+
46+
</fieldset>
47+
3348

3449

3550
<button>Submit</button>

0 commit comments

Comments
 (0)