Skip to content

Commit 2842943

Browse files
authored
fixing errors
Updated input field for name to include pattern validation.
1 parent f0f6330 commit 2842943

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ <h1>Product Pick</h1>
1616
<form>
1717
<!-- write your html here-->
1818
Enter your name:
19-
<input type="text" placeholder="Enter your name" name="aName" size="16" minlength="2" maxlength="16"required>
20-
19+
<input type="text" placeholder="Enter your name " name="aName" size="16" minlength="2" maxlength="16" PATTERN = ".*\S.*\S.*" required>
20+
2121
<!-- the size attribute control how wide the text box, "how many characters it can control-->
2222
<!-- the minlength attribute control the minimum number of characters required-->
2323
<!-- the maxlength attribute control the maximum number of characters required-->
@@ -52,7 +52,7 @@ <h1>Product Pick</h1>
5252

5353
</datalist>
5454

55-
</form>
55+
5656

5757
<p>
5858
<style>
@@ -65,7 +65,7 @@ <h1>Product Pick</h1>
6565
<!--The input type="email" is used so the browser can validatae the email address format-->
6666
<!--the style tag is used to style the input box. CSS pseudo-classes :valid or :invalid to check if the email is valid and notify the user-->
6767

68-
<form> <label> <input type="submit"> <input type="resit">
68+
<label> <input type="submit"> <input type="resit">
6969
</label>
7070
</form>
7171
</main>
@@ -74,4 +74,4 @@ <h1>Product Pick</h1>
7474
<p>Rawan@</p>
7575
</footer>
7676
</body>
77-
</html>
77+
</html>

0 commit comments

Comments
 (0)