-
-
Notifications
You must be signed in to change notification settings - Fork 510
London | 26-ITP-MAY | Ebrahim Moqbel | Sprint 2 | Form Controls #1119
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
Changes from 10 commits
4032809
50fcc71
749a886
0173fea
47925f5
dc50152
84147a6
280c8fd
270dbee
697f95f
a008f20
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,16 +12,57 @@ | |
| <h1>Product Pick</h1> | ||
| </header> | ||
| <main> | ||
| <form> | ||
| <!-- write your html here--> | ||
| <!-- | ||
| try writing out the requirements first as comments | ||
| this will also help you fill in your PR message later--> | ||
| <form> | ||
| <section> | ||
|
|
||
| <div> | ||
| <label for="name"> Name*: </label> | ||
| <input type="text" id="name" name="name" required minlength="2"> | ||
| </div> | ||
|
|
||
| <div> | ||
| <label for="email">Email*:</label> | ||
| <input type="email" id="email" name="email" required> | ||
| </div> | ||
|
|
||
|
|
||
| <fieldset> | ||
| <legend >t-shirt Color</legend> | ||
| <div> | ||
| <label for="black" required>Black</label> | ||
| <input type="radio" id="black" name="t-shirt-color" value="black"> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently, the radio button name is placed before the radio button input. For better UX, try placing the radio button before the label. |
||
| </div> | ||
| <div> | ||
| <label for="red">Red </label> | ||
| <input type="radio" id="red" name="t-shirt-color" value="red"> | ||
| </div> | ||
| <div> | ||
| <label for="green">Green </label> | ||
| <input type="radio" id="green" name="t-shirt-color" value="green"> | ||
| </div> | ||
| </fieldset> | ||
|
|
||
|
|
||
| <div> | ||
| <label for="T-shirt-size" >T-Shirt Size</label> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| <select name="T-shirtSize" id="T-shirtSize" required> | ||
| <option value="XS">XS</option> | ||
| <option label="S" value="S">S</option> | ||
| <option label="M" value="M">M</option> | ||
| <option label="L" value="L">L</option> | ||
| <option label="XL" value="XL">XL</option> | ||
| <option label="XXL" value="XXL">XXL</option> | ||
| </select> | ||
| </div> | ||
| <div> | ||
| <button type="submit">Place your order</button> | ||
| </div> | ||
| </section> | ||
| </form> | ||
| </main> | ||
| <footer> | ||
| <!-- change to your name--> | ||
| <h2>By HOMEWORK SOLUTION</h2> | ||
|
|
||
| <p>By Ebraim Moqbel</p> | ||
| </footer> | ||
| </body> | ||
| </html> | ||
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
requiredattribute only applies to form input elements, not labels.