Repository navigation
London | 26-ITP- Sept | Chandramani Gaire | Sprint 1 | Forms Controls #1507
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 4 commits
c1b5342
06f259f
26ee31c
e5cb8dd
3c0daf7
0e8d387
8adacf3
919333d
69c63c1
54cb7e7
09f4a5f
194abd4
3bc4ca6
c1a0239
fb4ab7b
07f73f0
91e0c1a
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 |
|---|---|---|
|
|
@@ -9,19 +9,59 @@ | |
| </head> | ||
| <body> | ||
| <header> | ||
| <h1>Product Pick</h1> | ||
| <h1>Pick product</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--> | ||
|
|
||
| <!-- 1. What is the customer's name? I must collect this data and ensure it contains at least two non-space characters.--> | ||
| <div> | ||
| <label for="name">Name</label> | ||
| <input type="text" id="name" placeholder="Chandrmani Gaire" pattern=".*\S.*\S." required> | ||
| </div> | ||
| <br> | ||
| <div> | ||
| <label for="email">Email</label> | ||
| <input type="email" placeholder="chandramani@gmail.com" id="email" required> | ||
|
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 two selects have a
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. change the name="email"
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. Done. |
||
| </div> | ||
| <br> | ||
| <div> | ||
| <!--What colour should this T-shirt be? I must provide 3 options. How will I ensure they do not choose other colours? --> | ||
| <label for="coloroption">Color option</label> | ||
| <select id="coloroption" name="Color"> | ||
|
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. This select has no
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. put on this section
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. Both dropdowns fixed. Good. |
||
| <option value="grey" >Grey</option> | ||
| <option value="black">Black</option> | ||
| <option value="red"> Red</option> | ||
| </select> | ||
| </div> | ||
| <br> | ||
| <div> | ||
|
|
||
| <!--What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL --> | ||
| <label for="size">Size</label> | ||
| <select name="differentsize" id="size"> | ||
| <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> | ||
| <br> | ||
| <div> | ||
| <input id="submit" type="submit"> | ||
| </div> | ||
| <br> | ||
| </div> | ||
|
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. Which
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. clear the like this
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. Fixed, validator is clean. |
||
| <div> | ||
| <input id="reset" type="reset"> | ||
| </div> | ||
| </form> | ||
| </main> | ||
| <footer> | ||
| <!-- change to your name--> | ||
|
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. There is no need for this comment line, it can be removed. |
||
| <p>By HOMEWORK SOLUTION</p> | ||
| <p> By Chandramani Gaire</p> | ||
|
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. Extra spaces before "By" and between your first and last name, and the starter comment on line 63 can go now.
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. change the space
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. Spaces fixed. The starter comment on line 62 is still there, see the main comment. |
||
| </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.
Compare this pattern with the one in the README character by character. The last part is different. What does a
.on its own match, and how many characters does it require after the second non-space one?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.
type name=.\S.\S.* here
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.
Fixed.
Ais rejected andABgoes through now.