Skip to content

Commit 5917059

Browse files
authored
Enhance name input pattern for international characters
Updated name input pattern to include accented characters.
1 parent 4c82518 commit 5917059

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Form-Controls/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h1>Product Pick</h1>
2020
<legend>Name and Email address</legend>
2121
<!--Adding <legend> element for accessibility purposes-->
2222
<label for="name">Name</label>
23-
<input type="text" id="name" name="name" minlength="2" pattern="[a-zA-Z]+" required><br><br>
23+
<input type="text" id="name" name="name" minlength="2" pattern="[a-zA-ZÀ-ž]+" required><br><br>
2424
<!--Input field for name, making it required-->
2525
<label for="email">Email:</label>
2626
<input type="email" id="email" required><br><!--Input field for email address. Making it required-->
@@ -71,4 +71,4 @@ <h1>Product Pick</h1>
7171
</footer>
7272
</body>
7373

74-
</html>
74+
</html>

0 commit comments

Comments
 (0)