Skip to content

Commit 5c1e178

Browse files
committed
Added name and email validation to form in index.html
1 parent a9b5770 commit 5c1e178

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

Form-Controls/index.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,22 @@ <h1>Product Pick</h1>
1515
<form>
1616
<!-- write your html here-->
1717
<div>
18-
<label for="name">Name</label>
19-
18+
<legend>Customer details</legend>
19+
<label for="firstname">First name:</label>
20+
<input type="text" id="firstname" name="firstname" required> <br>
21+
<label for="lastname">Last name:</label>
22+
<input type="text" id="lastname" name="lastname" required>
23+
</div>
2024

25+
<div>
26+
<label for="email"> Email:</label>
27+
<input type="email"name="email" id="email" required>
28+
</div>
29+
2130

22-
</div>
31+
32+
33+
2334
<!--
2435
try writing out the requirements first as comments
2536
this will also help you fill in your PR message later-->

0 commit comments

Comments
 (0)