London | 26-ITP-MAY | Chinwe Chukwuma | Sprint 1 | Form Controls#1392
London | 26-ITP-MAY | Chinwe Chukwuma | Sprint 1 | Form Controls#1392ChinweP wants to merge 17 commits into
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.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Luro91
left a comment
There was a problem hiding this comment.
Well done. The functionality is correct. I have a minor comment about separating the styles
| <meta name="description" content="Form for ordering T-Shirts" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
|
|
||
| <style> |
There was a problem hiding this comment.
How could you separate the code for the styling from the HTML to make it easier to review (because of smaller files with separate responsibilities)
| name="name" | ||
| type="text" | ||
| required | ||
| pattern=".*\S.*\S.*" |
| <select id="colour" name="colour" required> | ||
| <option value="">Select Your Colour</option> | ||
| <option value="Burgundy">Burgundy</option> | ||
| <option value="Purple">Purple</option> | ||
| <option value="Yellow">Yellow</option> | ||
| </select> |
There was a problem hiding this comment.
FYI: I would switch around the form types. Radio buttons are good if there are not to many options to choose from. Space on a web page is precious and for inputs with a lot of options a dropdown can save a lot of space. (You don't need to change anything. This is just an information on the different input types)

Learners, PR Template
Self checklist
Changelist
I created a branch for this project called (features/form-controls). I built an HTML form for ordering T‑shirts that collects the customer’s full name, email address, colour choice, and size. I ensured the form meets the assignment requirements for form controls and validation by adding labels to all inputs to improve accessibility and using semantic structure such as fieldset and legend for grouped inputs. I styled the form and moved the style block into the head to pass W3C validation and Lighthouse accessibility checks. I also made several adjustments to the name and email labels to ensure the form's Lighthouse accessibility check is a 100.