Cape Town | 26-ITP-May | Juanita Nwachukwu | Sprint 1 | Form Controls#1401
Cape Town | 26-ITP-May | Juanita Nwachukwu | Sprint 1 | Form Controls#1401Jay99-prog wants to merge 2 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.
1 similar comment
This comment has been minimized.
This comment has been minimized.
|
Needs Review |
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.
This comment has been minimized.
This comment has been minimized.
2 similar comments
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.
|
You need to delete the placeholder text, " |
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?
| <header>T-shirt Order Form | ||
| <h1>T-shirt Order Form</h1> |
There was a problem hiding this comment.
Why made "T-shirt Order Form" to appear twice?
| <label> | ||
| <input type="radio" name="colour" value="pink" required> | ||
| Pink | ||
| </label> | ||
|
|
||
| <label> | ||
| <input type="radio" name="colour" value="black" required> | ||
| Black | ||
| </label> | ||
|
|
||
| <label> | ||
| <input type="radio" name="colour" value="blue" required> | ||
| Blue | ||
| </label> |
There was a problem hiding this comment.
Note: For radio buttons within the same group, it is sufficient to mark only one of them as required.
| <label for="name">Full Name</label> | ||
| <input | ||
| type="text" | ||
| id="name" | ||
| required | ||
| minlength="5" | ||
| > |
There was a problem hiding this comment.
This input element does not yet fully meet the requirement:
- Must be at least 2 characters long
- Cannot be empty
Currently, string such as "CJ" would be rejected but a string containing exactly 5 space characters would be accepted.
On separate note, can you use an AI to find out "In HTML, what is a placeholder attribute and why using it in input element is considered a good practice?"
| <!-- SIZE --> | ||
| <label for="size">SIZE</label> | ||
| <select id="size" name="size" required> | ||
| <option value="">-- Select Size --</option> | ||
| <option value="XS">XS</option> |
There was a problem hiding this comment.
The layout of the colour and size controls feels a bit unbalanced. The colour options are presented as a radio group, while the size selector appears immediately afterward without a similar grouping structure. Consider reorganizing these controls (for example, using <fieldset> and <legend> elements) to make the form easier to scan and more visually consistent.

Cape Town | 26-ITP-May | Juanita Nwachukwu | Sprint 1 | Form Controls
Self checklist
Changelist