Repository navigation
London | 26-ITP-SEP | Sakiya Mayow | Sprint 1 | Form Controls #1500
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 3 commits
a9b5770
5c1e178
f9437e6
6a476a1
7db0e90
54ded4f
98961ad
43145a0
0dff25d
39bfc0d
9e4795c
f95b8bd
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 |
|---|---|---|
|
|
@@ -14,6 +14,58 @@ <h1>Product Pick</h1> | |
| <main> | ||
| <form> | ||
| <!-- write your html here--> | ||
| <div> | ||
| <legend>Customer details</legend> | ||
| <label for="firstname">First name:</label> | ||
| <input type="text" id="firstname" name="firstname" required .*\S.*\S.*> <br> | ||
|
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 regex from the README is sitting here as an attribute on its own, so the browser ignores it. Which attribute is it meant to be the value of? I typed two spaces into this field on the deploy preview and it passed. Also the task asks for one name field, not first and last.
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. One name field now, good. The regex is still a bare attribute though, so this one is still open. See the new comment on line 23.
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 now, and two spaces are rejected. Good. |
||
| <label for="lastname">Last name:</label> | ||
| <input type="text" id="lastname" name="lastname" required> | ||
| <button type="Submit">Submit</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. There are four Submit buttons in this form, and one of them is inside the |
||
| </div> | ||
|
|
||
| <div> | ||
| <label for="email"> Email:</label> | ||
| <input type="email"name="email" 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. Missing space between
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. I received all your feedback and I have completed the corrections, and I will definitely create branch next time. Thank you ! |
||
| <button type="Submit">Submit</button> | ||
|
|
||
| </div> | ||
|
|
||
| <div> | ||
| <label for="T-shirt colour">Select one T-shirt colour:</label> | ||
|
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.
|
||
| <select name="T-shirt colour" id="T-shirt colour" 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. An id can't contain spaces, and a name shouldn't either. Try submitting the form and look at what appears in the address bar for this field.
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. Ids and names fixed. The
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. Matching now. Good. |
||
| <option value="">Choose one colour</option> | ||
| <option>Black</option> | ||
| <option>Navy blue</option> | ||
| <option>Grey</option> | ||
| </select> | ||
|
|
||
| <button type="Submit">Submit</button> | ||
| </div> | ||
|
|
||
| <div> | ||
| <label for="T-shirt Size">Select one size:</label> | ||
| <select name="T-shirt Size" id="T-shirt Size" required> | ||
| <option value=""> Choose one size</option> | ||
| <option>XS</option> | ||
| <option>S</option> | ||
| <option>M</option> | ||
| <option>L</option> | ||
| <option>XL</option> | ||
| <option>XXL</option> | ||
|
|
||
| <button type="Submit">Submit</button> | ||
| </select> | ||
|
|
||
| </div> | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| <!-- | ||
| try writing out the requirements first as comments | ||
| this will also help you fill in your PR message later--> | ||
|
|
||
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.
<legend>is only valid inside one particular element, and it isn't<div>. Which element groups a set of fields and takes a legend? The MDN page from the prep on structuring a form shows it.