-
-
Notifications
You must be signed in to change notification settings - Fork 268
LONDON | ITP MAY-2025 | Hibo Sharif | Form control | Week2 #438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The name The client Email The choice of three colours The choices of Tshirt sizes modified: Form-Controls/index.html
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
A well-prepared PR makes it easier for reviewers to approve it with minimal back-and-forth. And as a practice to get better at using AI tools, try running your code by ChatGPT. You can ask ChatGPT
Then take a look at the suggestions it gives you, and pick out the ones that actually make sense for your project. It's a great way to learn and improve your work. Once you've finished making changes, please leave a comment on this PR so I’ll get notified. Thanks! |
…on the HTML using the W3C Markup validation service. - I indented the file to make it easier to read. - I have used the AI tool to modify the code.
Hi @cjyuan , Thank you for the review.. I have followed the guide published on the Canvas and checked my work using the W3C HTML validation tool. I have also checked the code using the AI tool and made some adjustment to the code. Many thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code is free of errors and well indented. Good job!
Can you address the two requests I mentioned in the code?
Form-Controls/index.html
Outdated
<!-- | ||
try writing out the requirements first as comments | ||
this will also help you fill in your PR message later--> | ||
<div style="margin-bottom: 20px"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The spec does says, "No CSS" (including inline CSS).
Can you update your implementation accordingly? You may want to check your lighthouse score after you remove the CSS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @cjyuan ,
I have removed the CSS codes form the file and I have used lighthouse to check the score of the webpage. Bellow is a link to the score page:
Form-Controls/index.html
Outdated
name="name" | ||
id="name" | ||
required | ||
pattern="[A-Za-z\s]{2,50}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this pattern, a user can enter a name containing only space characters. Can you enforce a stricter rule to deny any name containing only space characters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @cjyuan
I have updated the code to enforce the rule of no name only containing space characters.
Changes look good. Well done! |
Learners, PR Template
Self checklist
Changelist
I have made number of changes to the file to add:
1- The customer's name.
2- The customer's email. The customer email must be valid.
3-Add three choices of t-shirt colour.
4- Give options for size does that the customer want. It must be the following 6 options : XS, S, M, L, XL, XXL
Questions
Please would you review my changes.