-
-
Notifications
You must be signed in to change notification settings - Fork 412
London | ITP-JAN-2016 | Ping Wang | Sprint 2 | form-controls #989
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 |
|---|---|---|
|
|
@@ -7,21 +7,63 @@ | |
| <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--> | ||
| <h2>By HOMEWORK SOLUTION</h2> | ||
| </footer> | ||
| </body> | ||
| <form> | ||
| <fieldset> | ||
| <legend><h2> Customer's details:</h2></legend> | ||
|
|
||
| <label for="name"> Name</label> | ||
| <input type="text" name="name" id="name" required pattern=".*\S.*" title="Name cannot be empty or contain only spaces."> | ||
|
|
||
|
|
||
| <label for="email">Email</label> | ||
| <input type="email" name="email" id="email" required> | ||
| </fieldset> | ||
|
|
||
| <fieldset> | ||
| <legend><h2> Choose a T-Shirt</h2></legend> | ||
|
|
||
| <label for="color">Color</label> | ||
| <select name="color" id="color" required> | ||
| <option value=""> Select </option> | ||
| <option value="red">Red</option> | ||
| <option value="white">White</option> | ||
| <option value="black">Black</option> | ||
| </select> | ||
|
|
||
| <p>Size</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. Your radio button labels and input work, but it is a bit unusual to have the label first and then the input. If you wrap your radio buttons inside of a |
||
|
|
||
| <input type="radio" name="size" id="xs" value="xs"> | ||
| <label for="xs">XS</label> | ||
| <br> | ||
| <input type="radio" name="size" id="s" value="s"> | ||
| <label for="s">S</label> | ||
| <br> | ||
| <input type="radio" name="size" id="m" value="m"> | ||
| <label for="m">M</label> | ||
| <br> | ||
| <input type="radio" name="size" id="l" value="l"> | ||
| <label for="l">L</label> | ||
| <br> | ||
| <input type="radio" name="size" id="xl" value="xl"> | ||
| <label for="xl">XL</label> | ||
| <br> | ||
| <input type="radio" name="size" id="xxl" value="xxl"> | ||
| <label for="xxl">XXL</label> | ||
| <br> | ||
| </fieldset> | ||
|
|
||
| <button type="submit"> Submit</button> | ||
| </form> | ||
| </main> | ||
|
|
||
| <footer> | ||
| <p> ping wang </p> | ||
| </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 you check to make sure you have the closing
</main>tag?