Skip to content

Commit baad5ba

Browse files
committed
add ids for email and name input fields
1 parent 88b1696 commit baad5ba

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Form-Controls/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,17 @@ <h1>Product Pick</h1>
2323
<!-- name and email -->
2424
<label for="name">Name:</label>
2525
<input
26+
id="name"
2627
required
2728
type="text"
2829
name="name"
2930
value=""
30-
title="Only letters (2-50 characters)"
31-
pattern="^[a-zA-Z]{2,50}$"
31+
title="Only letters and spaces (2-50 characters)"
32+
pattern="^[a-zA-Z ]{2,50}$"
3233
/>
34+
3335
<label for="email">Email:</label>
34-
<input required type="email" name="email" value="" />
36+
<input required id="email" type="email" name="email" value="" />
3537

3638
<!-- colours -->
3739
<label for="color">Choose a color:</label>

0 commit comments

Comments
 (0)