Skip to content

Commit 083e688

Browse files
committed
add autocomplete for name and email
1 parent 2a32c4e commit 083e688

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Form-Controls/index.html

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ <h1>Product Pick</h1>
1818

1919
<div>
2020
<label for="name">Full Name:</label>
21-
<input type="text" name="name" id="name" placeholder="Full name" required pattern=".*\S.*\S.*">
21+
<input type="text" name="name" id="name" placeholder="Full name" required pattern=".*\S.*\S.*" autocomplete="name">
2222
</div>
2323

2424
<div>
2525
<label for="email">Email:</label>
26-
<input type="email" name="email" id="email" placeholder="Email address" required>
26+
<input type="email" name="email" id="email" placeholder="Email address" required autocomplete="email">
2727
</div>
2828

2929
<div>
@@ -52,13 +52,10 @@ <h1>Product Pick</h1>
5252
<button type="submit">SUBMIT</button>
5353
<button type="reset">RESET</button>
5454

55-
<!--
56-
try writing out the requirements first as comments
57-
this will also help you fill in your PR message later-->
5855
</form>
5956
</main>
6057
<footer>
61-
<!-- change to your name-->
58+
6259
<p>By MATHEW SHAIBU</p>
6360
</footer>
6461
</body>

0 commit comments

Comments
 (0)