Skip to content

Commit e289781

Browse files
committed
Added name validation to form
1 parent b2c7381 commit e289781

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Form-Controls/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ <h1>Product Pick</h1>
5151
[ ]t shirt size = required to choose from only 6 sizes!
5252
5353
this will also help you fill in your PR message later-->
54+
<div>
55+
<label for="name">Full name: </label>
56+
<input id="name" name="name" required pattern=".*\S.*\S.*" />
57+
<button>Submit</button>
58+
</div>
5459
</form>
5560
</main>
5661
<footer>

0 commit comments

Comments
 (0)