WestMidlands | 26-ITP-Jan | Adedolapo Bamiduro | Sprint 2 | Form Controls#1127
WestMidlands | 26-ITP-Jan | Adedolapo Bamiduro | Sprint 2 | Form Controls#1127codebydolz wants to merge 1 commit 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.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cjyuan
left a comment
There was a problem hiding this comment.
-
According to https://validator.w3.org/, there are some warnings in your code. Can you address them?
-
Currently a user can submit the form without filling in all input.
-
Common practice is to keep the label of a radio button on the right (instead of at the bottom)
- Note: Embedded CSS is still CSS. Supposedly the requirement says "No CSS", but you can keep them.
| try writing out the requirements first as comments | ||
| this will also help you fill in your PR message later--> | ||
| <main id="main-content"> | ||
| <form action="results.html" method="get"> |
There was a problem hiding this comment.
For testing, we could set the action value to "#" so that the form data is sent to the URL of this page.
| <select name="size" id="size"> | ||
| <option value="XS">Extra Small</option> | ||
| <option value="S">Small</option> | ||
| <option value="M">Medium</option> | ||
| <option value="L">Large</option> | ||
| <option value="XL">Extra Large</option> | ||
| <option value="XXL">Extra Extra Large</option> | ||
| </select> |
There was a problem hiding this comment.
There is a way to configure a <select> element so that no option is selected by default, allowing the user to make an explicit choice.
| <input type="radio" name="color" id="color-blue" value="Blue"> | ||
| <label for="color-blue">Blue</label> |
There was a problem hiding this comment.
We won't need to use id and for if we encode this as:
<label>
<input type="radio" name="color" value="Blue">
Blue
</label>
| <div class="form-row"> | ||
| <label for="password">Password</label> | ||
| <input type="password" name="password" id="password" required aria-required="true"> | ||
| </div> |
There was a problem hiding this comment.
I am glad that you are trying different things, but I think it is weird to include a password input field in a T-shirt ordering form. :)

Learners, PR Template
Self checklist
Changelist
added the needed answers to form controls