You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Form-Controls/README.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,12 @@ Writing that out as a series of questions to ask yourself:
28
28
All fields are required.
29
29
Do not write a form action for this project.
30
30
31
-
## Acceptnce Criteria
31
+
> [!TIP]
32
+
> To check whether the customer's name contains at least two non-space characters you may need to use a **regular expression** (or **regex** for short), which is a tool used to match patterns in text. If you wish to learn more about regular expressions there are plenty of resources on the web including the [official MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions), but for this task you can use this regex that we have pre-written for you: `.*\S.*\S.*`.
33
+
>
34
+
> Now you have the regular expression, it's up to you to figure out how to use it in the context of an HTML form!
35
+
36
+
## Acceptance Criteria
32
37
33
38
### Developers must test their work.
34
39
@@ -51,8 +56,7 @@ Let's write out our testable criteria. Check each one off as you complete it.
51
56
52
57
> Before you say you're done: Is your code readable? Does it run correctly? Does it look professional?
53
58
54
-
These practices reflect the level of quality expected in professiona- [MDN: Form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)
55
-
l work.
59
+
These practices reflect the level of quality expected in professional work.
56
60
They ensure your code is reliable, maintainable, and presents a polished, credible experience to users.
57
61
58
62
-[ ] My HTML code has no errors or warnings when validated using https://validator.w3.org/
@@ -62,6 +66,7 @@ They ensure your code is reliable, maintainable, and presents a polished, credib
62
66
63
67
## Resources
64
68
-[MDN: Form controls](https://developer.mozilla.org/en-US/docs/Learn/Forms)
0 commit comments