London | 26-ITP-Jan | Damian Dunkley | Sprint 2 | Form-Controls#1027
London | 26-ITP-Jan | Damian Dunkley | Sprint 2 | Form-Controls#1027DamianDL wants to merge 18 commits intoCodeYourFuture:mainfrom
Conversation
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Please can I have some help.
|
…ith Origional/main
…Origional/main-second attempt
|
Updated with changes to meet requirements;
HTML
|
cjyuan
left a comment
There was a problem hiding this comment.
According to https://validator.w3.org/, there are errors in your code. Can you fix them?
Form-Controls/index.html
Outdated
| <div> | ||
| <!-- Email: basic format text@text.text --> | ||
| <label for="email">Email:</label> | ||
| <input type="email" id="email" name="email" required pattern="^[^@\s]+@[^@\s]+\.[^@\s]+$" title="Enter a valid email like user@example.com"> |
There was a problem hiding this comment.
Why use pattern in <input type="email"> when browsers can already perform built-in email validation?
|
In the Changelist section of the PR description, I am not sure what you mean by "How to save attributes". Can you update it accordingly to give a brief but clearer description of what you have changed in this PR branch? |
|
CJ-Thanks for your clear and concise review. I believe that I have made changes to align with your comments. Thanks Damian |
cjyuan
left a comment
There was a problem hiding this comment.
1
Code is good, but the indentation of the code could use some improvement.
2
In the Changelist section of the PR description, I am not sure what you mean by "How to save attributes". Can you update it accordingly to give a brief but clearer description of what you have changed in this PR branch?
Form-Controls/index.html
Outdated
| label { | ||
| font-size: 24px; | ||
| } | ||
| </style> |
There was a problem hiding this comment.
Can you improve the indentation on lines 10, 41, 71-72?
You can use the VSCode's "Format Document" feature to auto-indent the code?
To use the feature, right-click inside the code editor and select the option.
|
Changes look good. Well done. |

Learners, PR Template
Self checklist
Changelist
Forms updated to collect name and email to validate user and pick specific requirements of the T-shirt from list, for colour and size.
Questions