-
-
Notifications
You must be signed in to change notification settings - Fork 500
Cape Town | 25-ITP-May | Asanda Dunn | Sprint 1 | Form Controls #1283
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 2 commits
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 |
|---|---|---|
|
|
@@ -13,15 +13,51 @@ <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--> | ||
| <div> | ||
| <label for = "name">Name</label> | ||
| <input type = "text" name = "name" id = "name" minlength = "2" required /> | ||
| </div> | ||
|
|
||
|
|
||
| <div> | ||
| <label for = "email">Email</label> | ||
| <input type = "email" name = "email" id = "email" required/> | ||
| </div> | ||
|
|
||
|
|
||
| <div> | ||
| <p>Colour</p> | ||
|
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. I'm currently able to select multiple colours. according to requirements i should only be able to select 1 colour
Author
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. Good day Kyle, Thank you for your review. I was able to see the mistake that I made and I have updated it. May you kindly review the chnages. Thank you 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. Seems like this was fixed thanks |
||
| <input type ="radio" name = "colour" id = "red" value = "Red" required /> | ||
| <label for = "red">Red</label> | ||
|
|
||
| <input type = "radio" name = "color" id = "blue" value = "Blue"/> | ||
| <label for = "blue">Blue</label> | ||
|
|
||
| <input type = "radio" name = "colour" id = "black" value = "Black"/> | ||
| <label for = "black">Black</label> | ||
| </div> | ||
|
|
||
| <div> | ||
| <label for="size">Size</label> | ||
|
|
||
| <select name="size" id="size" required> | ||
| <option value="">Select a size</option> | ||
| <option value="XS">XS</option> | ||
| <option value="S">S</option> | ||
| <option value="M">M</option> | ||
| <option value="L">L</option> | ||
| <option value="XL">XL</option> | ||
| <option value="XXL">XXL</option> | ||
| </select> | ||
| </div> | ||
| <div> | ||
| <button type="submit">Submit</button> | ||
| </div> | ||
| </form> | ||
| </main> | ||
| <footer> | ||
| <!-- change to your name--> | ||
| <p>By HOMEWORK SOLUTION</p> | ||
| <p>Asanda Dunn</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.
i'm currently able to submit with a name value of
(two spaces). according to requirements i should not be able to do thatThere 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.
Seems like this was fixed thanks