Skip to content

Commit a4c76c0

Browse files
author
JorvanW
committed
Added a new label imnput to only accept a first and last name and added a title to explain the requirement if failed
1 parent c285463 commit a4c76c0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Form-Controls/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ <h1>T-Shirts</h1>
1515
<main>
1616
<form>
1717
<label for="name">Name</label>
18-
<input id="name" type="text" required/>
18+
<input id="name" type="text" required pattern="[^\s]{2,}(?:\s+[^\s]{2,})+"
19+
title="Please enter a valid first and last name"/>
1920
<label for="email">Email</label>
2021
<input id="email" type="email" required/>
2122
<label for="size">Size

0 commit comments

Comments
 (0)