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
+34-3Lines changed: 34 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,17 @@
8
8
-[x] Write a valid form
9
9
-[x] Test with Devtools
10
10
-[x] Refactor using Devtools
11
+
-[ ] Interpret requirements and check against a list of criteria
12
+
-[ ] Write a valid form
13
+
-[ ] Test with Devtools
14
+
-[ ] Refactor using Devtools
15
+
-[ ] Use version control by committing often and pushing regularly to GitHub
16
+
-[ ] Develop the habit of writing clean, well-structured, and error-free code
11
17
<!--{{<objectives>}}>-->
12
18
13
19
## Task
14
20
15
-
We are selling t-shirts. Write a form to collect the following data:
21
+
We are selling T-shirts. Write a form to collect the following data:
16
22
17
23
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 color and size.
18
24
@@ -22,11 +28,17 @@ Writing that out as a series of questions to ask yourself:
22
28
2. What is the customer's email? I must make sure the email is valid. Email addresses have a consistent pattern.
23
29
3. What color should this t-shirt be? I must give 3 options. How will I make sure they don't pick other colors?
24
30
4. What size does the customer want? I must give the following 6 options: XS, S, M, L, XL, XXL
31
+
1. What is the customer's name? I must collect this data and ensure it contains at least two non-space characters.
32
+
2. What is the customer's email? I must make sure the email is valid. Email addresses follow a consistent pattern.
33
+
3. What colour should this T-shirt be? I must provide 3 options. How will I ensure they do not choose other colours?
34
+
4. What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL
25
35
26
36
All fields are required.
27
37
Do not write a form action for this project.
28
38
29
-
## Developers must test their work.
39
+
## Acceptnce Criteria
40
+
41
+
### Developers must test their work.
30
42
31
43
Let's write out our testable criteria. Check each one off as you complete it.
32
44
@@ -44,10 +56,29 @@ Let's write out our testable criteria. Check each one off as you complete it.
44
56
-[x] I require a valid email.
45
57
-[x] I require one color from a defined set of 3 colors.
46
58
-[x] I require one size from a defined set of 6 sizes.
59
+
-[ ] My form is semantic HTML.
60
+
-[ ] All inputs have associated labels.
61
+
-[ ] My Lighthouse Accessibility score is 100.
62
+
-[ ] I require a valid name.
63
+
-[ ] I require a valid email.
64
+
-[ ] I require one colour from a defined set of 3 colours.
65
+
-[ ] I require one size from a defined set of 6 sizes.
47
66
48
-
## Resources
67
+
### Developers must adhere to professional standards.
68
+
69
+
> Before you say you're done: Is your code readable? Does it run correctly? Does it look professional?
49
70
71
+
These practices reflect the level of quality expected in professional work.
72
+
They ensure your code is reliable, maintainable, and presents a polished, credible experience to users.
73
+
74
+
-[ ] My HTML code has no errors or warnings when validated using https://validator.w3.org/
75
+
-[ ] My code is consistently formatted
76
+
-[ ] My page content is free of typos and grammatical mistakes
77
+
-[ ] I commit often and push regularly to GitHub
78
+
79
+
## Resources
50
80
-[MDN: Form controls](https://developer.mozilla.org/en-US/docs/Learn/Forms)
51
81
-[MDN: Form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)
Using the provided wireframe and resources, write a new webpage explaining:
6
-
7
-
1. What is the purpose of a README file?
8
-
1. What is the purpose of a wireframe?
9
-
1. What is a branch in Git?
10
-
11
-
There are some provided HTML and CSS files you can use to get started. You can use these files as a starting point or create your own files from scratch. You _must_ modify the HTML and CSS files to meet the acceptance criteria and you must check this criteria yourself before you submit your work.
12
-
13
3
## Learning Objectives
14
4
15
5
<!--{{<objectives>}}>-->
@@ -19,20 +9,47 @@ There are some provided HTML and CSS files you can use to get started. You can u
19
9
-[ ] Check a webpage against a wireframe layout
20
10
-[ ] Test web code using [Lighthouse](https://programming.codeyourfuture.io/guides/testing/lighthouse)
21
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
22
13
<!--{{</objectives>}}>-->
23
14
15
+
## Task
16
+

17
+
18
+
Using the provided wireframe and resources, write a new webpage explaining:
19
+
20
+
1. What is the purpose of a README file?
21
+
1. What is the purpose of a wireframe?
22
+
1. What is a branch in Git?
23
+
24
+
The page layout should closely match the wireframe. Exact replication is the goal, but small differences may be accepted.
25
+
26
+
There are some provided HTML and CSS files you can use to get started. You can use these files as a starting point or create your own files from scratch. You _must_ modify the HTML and CSS files to meet the acceptance criteria and you must check this criteria yourself before you submit your work.
27
+
24
28
## Acceptance Criteria
25
29
26
30
-[ ] Semantic HTML tags are used to structure the webpage.
27
31
-[ ] The page scores 100 for Accessibility in the Lighthouse audit.
28
-
-[ ] The page header includes a title and description.
29
-
-[ ] The articles section has three unique articles, each including an image, title, summary, and a link.
30
-
-[ ] The page footer is fixed to the bottom of the viewport.
31
32
-[ ] The webpage is styled using a linked .css file.
32
33
-[ ] The webpage is properly committed and pushed to a branch on GitHub.
34
+
-[ ] The articles section contains three distinct articles, each with its own unique image, title, summary, and link.
35
+
-[ ] The page footer is fixed to the bottom of the viewport.
36
+
-[ ] The page layout closely match the wireframe.
37
+
38
+
### Developers must adhere to professional standards.
39
+
40
+
> Before you say you're done: Is your code readable? Does it run correctly? Does it look professional?
41
+
42
+
These practices reflect the level of quality expected in professional work.
43
+
They ensure your code is reliable, maintainable, and presents a polished, credible experience to users.
44
+
45
+
-[ ] My HTML code has no errors or warnings when validated using https://validator.w3.org/
46
+
-[ ] My code is consistently formatted
47
+
-[ ] My page content is free of typos and grammatical mistakes
0 commit comments