Skip to content

Commit 4951e83

Browse files
committed
Add learning objectives as a comment
1 parent d28242a commit 4951e83

1 file changed

Lines changed: 35 additions & 4 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,41 @@ <h1>Product Pick</h1>
1313
</header>
1414
<main>
1515
<form>
16-
<!-- write your html here-->
17-
<!--
18-
try writing out the requirements first as comments
19-
this will also help you fill in your PR message later-->
16+
<!-- Learning objectives
17+
Interpret requirements and check against a list of criteria
18+
Write a valid form
19+
Test with Devtools
20+
Refactor using Devtools
21+
Use version control by committing often and pushing regularly to GitHub
22+
Develop the habit of writing clean, well-structured, and error-free code
23+
24+
Writing that out as a series of questions to ask yourself:
25+
26+
What is the customer's name? I must collect this data and ensure it contains at least two non-space characters.
27+
What is the customer's email? I must make sure the email is valid. Email addresses follow a consistent pattern.
28+
What colour should this T-shirt be? I must provide 3 options. How will I ensure they do not choose other colours?
29+
What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL
30+
31+
Testable criteria
32+
I have only used HTML and CSS.
33+
I have not used any JavaScript.
34+
35+
HTML
36+
My form is semantic HTML.
37+
All inputs have associated labels.
38+
My Lighthouse Accessibility score is 100.
39+
I require a valid name.
40+
I require a valid email.
41+
I require one colour from a defined set of 3 colours.
42+
I require one size from a defined set of 6 sizes.
43+
44+
Professional standards
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
48+
I commit often and push regularly to GitHub
49+
-->
50+
2051
</form>
2152
</main>
2253
<footer>

0 commit comments

Comments
 (0)