-
-
Notifications
You must be signed in to change notification settings - Fork 497
Manchester | 26-ITP-May | Ahmed Elmahmoudi | Sprint 1 | Feature/Form-controls #1367
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
base: main
Are you sure you want to change the base?
Changes from all commits
fa4a57b
519b693
beb5289
81d7765
7f43f3e
2261aa0
c754a40
91c5ee2
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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| <!DOCTYPE html> | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
|
|
@@ -7,21 +7,73 @@ | |
| <meta name="description" content="" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| </head> | ||
|
|
||
| <body> | ||
| <header> | ||
| <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 class="form"> | ||
|
|
||
| <div> | ||
| <label for="name"> Name:</label> | ||
| <input type="text" name="name" id="name" minlength="2" required /> | ||
| <br><br> | ||
|
|
||
| <label for="email"> Email:</label> | ||
| <input type="email" name="email" id="email" required> | ||
| <br><br> | ||
|
|
||
| <label for="colour">Colour:</label> | ||
| <select name="colour" id="colour" required> | ||
| <option value="" selected disabled> Select</option> | ||
| <option value="red"> Red</option> | ||
| <option value="green">Green</option> | ||
| <option value="blue">Blue</option> | ||
| </select> | ||
| <br><br> | ||
|
|
||
| <fieldset> | ||
| <legend>Size</legend> | ||
|
|
||
| <label for="XS"> XS</label> | ||
|
Comment on lines
+29
to
+40
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. 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 dropddown can save a lot of space. (You don't need to change anything. This is just an information on the different input types) |
||
| <input type="radio" name="size" id="XS" value="XS" required> | ||
| <br><br> | ||
|
|
||
| <label for="S">S</label> | ||
| <input type="radio" name="size" id="S" value="S"> | ||
| <br><br> | ||
|
|
||
| <label for="M"> M</label> | ||
| <input type="radio" name="size" id="M" value="M"> | ||
| <br><br> | ||
|
|
||
| <label for="L"> L</label> | ||
| <input type="radio" name="size" id="L" value="L"> | ||
| <br><br> | ||
|
|
||
| <label for="XL"> XL</label> | ||
| <input type="radio" name="size" id="XL" value="XL"> | ||
| <br><br> | ||
|
|
||
| <label for="XXL"> XXL</label> | ||
| <input type="radio" name="size" id="XXL" value="XXL"> | ||
| <br><br> | ||
|
|
||
| </fieldset> | ||
|
|
||
| <br> | ||
| <button type="submit">Submit</button> | ||
| </div> | ||
|
|
||
|
|
||
|
|
||
| </form> | ||
| </main> | ||
| </main> | ||
|
|
||
| <footer> | ||
| <!-- change to your name--> | ||
| <p>By HOMEWORK SOLUTION</p> | ||
| <p>By Ahmed Elmahmoudi</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.
Well done on all validations