-
-
Notifications
You must be signed in to change notification settings - Fork 400
Birmingham | ITP-Jan | Ahmad Roman Sanaye | Sprint 2 | Form Controls #1047
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
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Form-Controls/index.html
Outdated
| <!-- Email --> | ||
| <div> | ||
| <label for="email">Email</label> | ||
| <input type="email" id="email" name="email" required /> |
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.
welldone for the Good work.
can you add a placeholder to guide the user ?
can you use minlength as part of the validation for the email too ?
|
|
||
| <!-- Size --> | ||
| <fieldset> | ||
| <legend>T-Shirt Size</legend> |
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.
if we don't want to type so many html elements i.e follow the KISS principle can we use the dropdown menu instead ?
Form-Controls/index.html
Outdated
| <!-- Name --> | ||
| <div> | ||
| <label for="name">Name</label> | ||
| <input type="text" id="name" name="name" minlength="2" required /> |
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.
a placeholder could be a way to guide users
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.
@takanocap , Thank you for your valuable feedback. I followed your suggestion to add placeholders and reduce repeated HTML elements by using dropdowns, which made my form cleaner, more precise, and user-friendly. I also learned that there is always an alternative approach that can make a solution more elegant and efficient. I really appreciate your guidance.
takanocap
left a comment
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.
Well done for the good job.
LGTM

Self checklist
Changelist
This PR adds an HTML-only form to collect customer details for a t-shirt order.
The form uses semantic HTML, includes associated labels for all inputs, and applies native HTML validation to ensure all required fields are completed correctly. No CSS or JavaScript has been used, in line with the assignment requirements.
Questions
No questions at the moment. Feedback is welcome.