Skip to content

Commit 11b6434

Browse files
committed
Update name input placeholder and add validation pattern for improved user guidance
1 parent 0eb7591 commit 11b6434

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
@@ -18,7 +18,8 @@ <h1>My Store T-shirt Sales</h1>
1818
<form>
1919
<div>
2020
<label for="name">Name</label>
21-
<input type="text" name="name" id="name" placeholder="Username" required aria-required="true">
21+
<input type="text" name="name" id="name" placeholder="First and Last name" required pattern=".*\s+.*"
22+
title="Please enter your first and last name, separated by a space">
2223
</div>
2324

2425
<div>

0 commit comments

Comments
 (0)