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
-[ ] Interpret requirements and check against a list of criteria
8
-
-[ ] Write a valid form
9
-
-[ ] Test with Devtools
10
-
-[ ] Refactor using Devtools
11
-
<!--{{<objectives>}}>-->
12
-
13
-
## Task
14
-
15
-
We are selling t-shirts. Write a form to collect the following data:
16
-
17
-
Our customers already have accounts, so we know their addresses and charging details already. We don't need to collect that data. We want to confirm they are the right person, then get them to choose a colour and size.
18
-
19
-
Writing that out as a series of questions to ask yourself:
20
-
21
-
1. What is the customer's name? I must collect this data, and validate it. But what is a valid name? I must decide something.
22
-
2. What is the customer's email? I must make sure the email is valid. Email addresses have a consistent pattern.
23
-
3. What colour should this t-shirt be? I must give 3 options. How will I make sure they don't pick other colours?
24
-
4. What size does the customer want? I must give the following 6 options: XS, S, M, L, XL, XXL
25
-
26
-
All fields are required.
27
-
Do not write a form action for this project.
28
-
29
-
## Developers must test their work.
30
-
31
-
Let's write out our testable criteria. Check each one off as you complete it.
32
-
33
-
-[ ] I have used HTML only.
34
-
-[x] I have not used any CSS or JavaScript.
35
-
36
-
### HTML
37
-
38
-
-[ ] My form is semantic html.
39
-
-[ ] All inputs have associated labels.
40
-
-[ ] My Lighthouse Accessibility score is 100.
41
-
-[ ] I require a valid name. I have defined a valid name as a text string of two characters or more.
42
-
-[ ] I require a valid email.
43
-
-[ ] I require one colour from a defined set of 3 colours.
44
-
-[ ] I require one size from a defined set of 6 sizes.
45
-
46
-
## Resources
47
-
48
-
-[MDN: Form controls](https://developer.mozilla.org/en-US/docs/Learn/Forms)
49
-
-[MDN: Form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)
-[ ] Interpret requirements and check against a list of criteria
8
+
-[ ] Write a valid form
9
+
-[ ] Test with Devtools
10
+
-[ ] Refactor using Devtools
11
+
<!--{{<objectives>}}>-->
12
+
13
+
## Task
14
+
15
+
We are selling t-shirts. Write a form to collect the following data:
16
+
17
+
Our customers already have accounts, so we know their addresses and charging details already. We don't need to collect that data. We want to confirm they are the right person, then get them to choose a colour and size.
18
+
19
+
Writing that out as a series of questions to ask yourself:
20
+
21
+
1. What is the customer's name? I must collect this data, and validate it. But what is a valid name? I must decide something.
22
+
2. What is the customer's email? I must make sure the email is valid. Email addresses have a consistent pattern.
23
+
3. What colour should this t-shirt be? I must give 3 options. How will I make sure they don't pick other colours?
24
+
4. What size does the customer want? I must give the following 6 options: XS, S, M, L, XL, XXL
25
+
26
+
All fields are required.
27
+
Do not write a form action for this project.
28
+
29
+
## Developers must test their work.
30
+
31
+
Let's write out our testable criteria. Check each one off as you complete it.
32
+
33
+
-[ ] I have used HTML only.
34
+
-[x] I have not used any CSS or JavaScript.
35
+
36
+
### HTML
37
+
38
+
-[ ] My form is semantic html.
39
+
-[ ] All inputs have associated labels.
40
+
-[ ] My Lighthouse Accessibility score is 100.
41
+
-[ ] I require a valid name. I have defined a valid name as a text string of two characters or more.
42
+
-[ ] I require a valid email.
43
+
-[ ] I require one colour from a defined set of 3 colours.
44
+
-[ ] I require one size from a defined set of 6 sizes.
45
+
46
+
## Resources
47
+
48
+
-[MDN: Form controls](https://developer.mozilla.org/en-US/docs/Learn/Forms)
49
+
-[MDN: Form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)
0 commit comments