Skip to content

Commit 6013fc6

Browse files
As per the feedback, added id and name in input fields
1 parent dcbfa4a commit 6013fc6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Form-Controls/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ <h1>Product Pick</h1>
1414
<main>
1515
<form>
1616
<div>
17-
<label>Customer Name: </label>
18-
<input required minlength="2" pattern=".*\S.*\S.*">
17+
<label for="name">Customer Name: </label>
18+
<input type="text" name="name" id="name" placeholder="enter your name" required minlength="2" pattern=".*\S.*\S.*">
1919
</div><br/>
2020
<div>
21-
<label>Customer Email: </label>
22-
<input type="email" required placeholder="you@example.com">
21+
<label for="email">Customer Email: </label>
22+
<input type="email" name="email" id="email" placeholder="you@example.com" required>
2323
</div>
2424
<div>
2525
<p>Choose a T‑shirt colour:</p>

0 commit comments

Comments
 (0)