Repository navigation
London | 26-ITP-Sept | Fung Nin Lee | Sprint 1 | Forms Control #1484
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 14 commits
3acf9bd
4ea47cd
b23155b
56ce344
8eebedc
f81e814
00d9593
b71b7df
7a2fe70
b50f040
e4c0e3e
4a75ef1
a53022c
5a42135
f3a35c6
37378b4
028040f
58c127f
a8ca697
deea624
dfe5ad2
3401c11
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 |
|---|---|---|
|
|
@@ -4,24 +4,62 @@ | |
| <meta charset="utf-8" /> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
| <title>My form exercise</title> | ||
| <header><h1>Product Pick</h1></header> | ||
| <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> | ||
| </main> | ||
| <footer> | ||
| <!-- change to your name--> | ||
| <p>By HOMEWORK SOLUTION</p> | ||
| </footer> | ||
| </body> | ||
| <label for="name">Customer Name</label> | ||
| <input type="text" id="name" name="name" pattern=".*\S.*\S.*" title="You must enter at least two characters" required /> | ||
| <div> | ||
| <label for="email">Email</label> | ||
| <input type="email" id="email" name="email" required> | ||
| </div> | ||
|
|
||
| <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. 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, and the validator is clean now. |
||
| <br> | ||
| 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. Loose text as a heading for the radios. Hammad's fieldset link was about this. What does the MDN page from the prep on structuring a form use to group radio buttons and caption them?
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. That's the one. Fieldset and legend, done. |
||
| <div> | ||
| <label for="red">Red</label> | ||
| <input type="radio" id="red" name="color" value="red" required> | ||
| </div> | ||
| <div> | ||
| <label for="blue">Blue</label> | ||
| <input type="radio" id="blue" name="color" value="blue" required> | ||
| </div> | ||
| <div> | ||
| <label for="green">Green</label> | ||
| <input type="radio" id="green" name="color" value="green" required> | ||
| </div> | ||
| <br> | ||
| <div> | ||
| <label for="size">Size</label> | ||
| <select name="size" id="size" required> | ||
| <option disabled hidden selected required value="">Select One</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.
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. |
||
| <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> | ||
| <p></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. Hammad asked about the empty
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. Gone, good. |
||
| <button type="submit">submit</button> | ||
| </form> | ||
| </main> | ||
|
|
||
|
|
||
|
|
||
|
|
||
| <footer> | ||
| <p>By Fung Nin Lee (Roger) HOMEWORK SOLUTION</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. HOMEWORK SOLUTION should have gone when you put your name in.
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. Hi Abdi. Thank you for your comments. Could you feel free to check if it is OK now?
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. Yes, all the structure points are done. One thing left, formatting, 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.
This is inside
<head>. Which part of the page does<head>describe, and where should something the user sees go? The starter file had this right.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.