Skip to content

Commit 4245d68

Browse files
committed
Personal information fields such as name and email, added
1 parent e44eb46 commit 4245d68

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Form-Controls/index.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,33 @@ <h1>Product Pick</h1>
1616
<!-- Fieldset added for form structure-->
1717
<fieldset>
1818
<legend>Personal Details</legend>
19+
20+
<div>
21+
<label for="name">Name:</label>
22+
<input
23+
type="text"
24+
id="name"
25+
name="name"
26+
placeholder="Ada Lovelace"
27+
title="Please enter your name"
28+
pattern=".*\S.*\S.*"
29+
/>
30+
</div>
31+
32+
<div>
33+
<label for="email">Email:</label>
34+
<input
35+
type="email"
36+
id="email"
37+
name="email"
38+
placeholder="ada.lovelace@example.com"
39+
title="Please enter a valid email"
40+
pattern=".*\S.*@.*\S.*"
41+
required
42+
/>
43+
</div>
1944
</fieldset>
45+
2046
<fieldset>
2147
<legend>T-shirt Information</legend>
2248
</fieldset>

0 commit comments

Comments
 (0)