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
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
-[ ] Refactor using Devtools
11
11
-[ ] Use version control by committing often and pushing regularly to GitHub
12
12
-[ ] Develop the habit of writing clean, well-structured, and error-free code
13
+
13
14
<!--{{<objectives>}}>-->
14
15
15
16
## Task
@@ -29,7 +30,7 @@ All fields are required.
29
30
Do not write a form action for this project.
30
31
31
32
> [!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
+
> 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
>
34
35
> 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
@@ -47,7 +48,7 @@ Let's write out our testable criteria. Check each one off as you complete it.
47
48
-[ ] My form is semantic HTML.
48
49
-[ ] All inputs have associated labels.
49
50
-[ ] My Lighthouse Accessibility score is 100.
50
-
-[ ] I require a valid name.
51
+
-[ ] I require a valid name.
51
52
-[ ] I require a valid email.
52
53
-[ ] I require one colour from a defined set of 3 colours.
53
54
-[ ] I require one size from a defined set of 6 sizes.
@@ -65,6 +66,7 @@ They ensure your code is reliable, maintainable, and presents a polished, credib
65
66
-[ ] I commit often and push regularly to GitHub
66
67
67
68
## Resources
69
+
68
70
-[MDN: Form controls](https://developer.mozilla.org/en-US/docs/Learn/Forms)
69
71
-[MDN: Form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)
0 commit comments