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