Skip to content

Commit 10dcfdb

Browse files
committed
Name and email inputs
1 parent 9e12162 commit 10dcfdb

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Form-Controls/index.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ <h1>Product Pick</h1>
1414
<main>
1515
<form>
1616
<div>
17-
<label>Name</label>
18-
<input>
17+
<label for="full-name">Name</label>
18+
<input type="text" id="full-name" name="full-name" required minlength="2" pattern=".*\S,*\S.*" title="Please enter at least two nonspace characters">
1919
</div>
20+
<div>
21+
<label for="email">Email</label>
22+
<input type="email" id="email" name="email" required>
23+
24+
</div>
2025
<button>submit</button>
2126
<!--
2227
checklist:

0 commit comments

Comments
 (0)