Skip to content

Commit c9830a3

Browse files
committed
fixing the meta content for the form and also name input pattern boundaries
1 parent 754a036 commit c9830a3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Form-Controls/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<title>My form exercise</title>
7-
<meta name="description" content="" />
7+
<meta name="description" content="a form control for t-shirt order" />
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
99
</head>
1010
<body>
@@ -24,7 +24,7 @@ <h2>Personal Information</h2>
2424
id="fname"
2525
maxlength="10"
2626
minlength="2"
27-
pattern="[A-Za-z]+"
27+
pattern="^[\p{L}][\p{L}\s'-]*$"
2828
required
2929
/><br />
3030
<br />
@@ -35,7 +35,7 @@ <h2>Personal Information</h2>
3535
id="lname"
3636
maxlength="10"
3737
minlength="2"
38-
pattern="[A-Za-z]+"
38+
pattern="^[\p{L}][\p{L}\s'-]*$"
3939
required
4040
/><br />
4141
<br />

0 commit comments

Comments
 (0)