-
-
Notifications
You must be signed in to change notification settings - Fork 432
London | Jan-26 | Boualem Larbi Djebbour | Sprint 2 | feature/Form Controls #1164
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 11 commits
d2b9658
5a88a92
9c31bf2
c6d444a
fb2d3b8
4644aca
5d8981f
80cccdf
db5a198
2b7705d
88f94d9
07e35d8
a80967b
b5e1789
1ee1f53
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 |
|---|---|---|
|
|
@@ -7,21 +7,52 @@ | |
| <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--> | ||
| <div> | ||
| <label for="name">Name</label> | ||
| <input type="text" name="name" id="name" required minlength="2" pattern="[A-Za-z\s]+"> | ||
|
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. 🤔 Your pattern might be a bit too restrictive. If I enter a name like 'Jean-Luc', I get a message telling me that my name doesn't follow the pattern. |
||
| </div> | ||
| <br> | ||
| <div> | ||
| <label for="email">E-mail</label> | ||
| <input type="email" name="email" id="email" required pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}"> | ||
| </div> | ||
| <br> | ||
| <div> | ||
| <label for="colour">select colour</label> | ||
| <select name="colour" id="colour" required> | ||
| <option value="" disabled selected>Select a colour</option> | ||
| <option value="brown">brown</option> | ||
|
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. For your colour options, try to follow the same naming convention for all options. Currently, 'brown' and 'yellow' start with a lowercase letter but 'Green' starts with uppercase letter. |
||
| <option value="yellow">yellow</option> | ||
| <option value="Green">Green</option> | ||
| </select> | ||
| </div> | ||
| <br> | ||
| <div> | ||
| <label for="size"> select size</label> | ||
| <select name="size" id="size" required> | ||
| <option value="" disabled selected>Select a size</option> | ||
| <option value="xs">XS(extra small)</option> | ||
| <option value="s">S(small)</option> | ||
| <option value="m">M(medium)</option> | ||
| <option value="l">L(large)</option> | ||
| <option value="xl">XL(extra large)</option> | ||
| <option value="xxl">XXL(double extra large)</option> | ||
| </select> | ||
| </div> | ||
| <br> | ||
| <button type="submit">Sumbit</button> | ||
|
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. Please check for a typo on the button. |
||
| </form> | ||
| </main> | ||
|
|
||
| <footer> | ||
| <!-- change to your name--> | ||
| <p>By HOMEWORK SOLUTION</p> | ||
| <p>By Boualem Larbi Djebbour</p> | ||
| </footer> | ||
| </body> | ||
| </html> | ||
Uh oh!
There was an error while loading. Please reload this page.