-
-
Notifications
You must be signed in to change notification settings - Fork 400
Manchester | 26-ITP-Jan | Liban Jama | Sprint 2 | Form-Controls #1082
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
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 |
|---|---|---|
|
|
@@ -25,3 +25,77 @@ <h2>By HOMEWORK SOLUTION</h2> | |
| </footer> | ||
| </body> | ||
| </html> | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
|
|
||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
| <title>My form exercise</title> | ||
| <meta name="description" content="" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| </head> | ||
|
|
||
| <body> | ||
| <header> | ||
| <h1>Product Pick</h1> | ||
| </header> | ||
| <main> | ||
| <form> | ||
| <p> | ||
| <label for="name">Name</label> | ||
| <input type="text" id="name" name="user_name" /> | ||
| </p> | ||
| <p> | ||
| <label for="mail">Email</label> | ||
| <input type="email" id="mail" name="user_email" /> | ||
|
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. can we use a placeholder to guide the users? |
||
| </p> | ||
| <p>Colour</p> | ||
|
|
||
| <label> | ||
|
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. is there an attribute to associate the label with the radio button ? |
||
| <input type="radio" name="colour" value="red" /> | ||
| Red | ||
| </label><br> | ||
| <br> | ||
|
|
||
| <label> | ||
| <input type="radio" name="colour" value="blue" /> | ||
| Blue | ||
| </label><br> | ||
| <br> | ||
|
|
||
| <label> | ||
| <input type="radio" name="colour" value="green" /> | ||
| Green | ||
| </label> <br> | ||
| <br> | ||
|
|
||
| <p>Size</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. well done for the good work. |
||
| <input id="Extra Small" type="radio" name="size" value="XS" /> | ||
| <label for="Extra Small">Extra Small</label> <br> | ||
| <br> | ||
| <input id="Small" type="radio" name="size" value="S" /> | ||
| <label for="Small">Small</label> <br> | ||
| <br> | ||
| <input id="Medium"type="radio" name="size" value="M" /> | ||
| <label for="Medium">Medium</label> <br> | ||
| <br> | ||
| <input id="Large" type="radio" name="size" value="L" /> | ||
| <label for="Large">Large</label> <br> | ||
| <br> | ||
| <input id="Extra Large" type="radio" name="size" value="XL" /> | ||
| <label for="Extra Large">Extra Large</label> <br> | ||
| <br> | ||
| <input id="Extra Extra Large"type="radio" name="size" value="XXL" /> | ||
| <label for="Extra Extra Large">Extra Extra Large</label> <br> | ||
|
|
||
|
|
||
|
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. How do we submit the form? is there an element to use to submit the form ? |
||
| </form> | ||
| </main> | ||
| <footer> | ||
| <h2>By LIBAN JAMA</h2> | ||
| </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.
can we use a minlength and other attribute to validate or make sure the input is required ?
can we use the placeholder to guide the users ?