-
-
Notifications
You must be signed in to change notification settings - Fork 500
London | 26-ITP-May| Mahdi Rafiei | Sprint 1 | Form Controls #1245
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
Changes from 1 commit
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 |
|---|---|---|
|
|
@@ -12,16 +12,66 @@ | |
| <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> | ||
| <form> | ||
|
|
||
| <label for="name">Customer Name</label> | ||
| <input | ||
| type="text" | ||
| id="name" | ||
| name="name" | ||
| required | ||
| pattern=".*\S.*\S.*" | ||
| minlength="2" | ||
|
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. Its good practice to use indentation on the html attributes to make it more readable. How could you ensure consistent and standard formatting of your code? |
||
| /> | ||
|
|
||
|
|
||
| <label for="email">Email Address</label> | ||
| <input | ||
| type="email" | ||
| id="email" | ||
| name="email" | ||
| required | ||
| /><br /> | ||
|
|
||
| <!-- T-Shirt Colour --> | ||
| <fieldset> | ||
| <legend>T-Shirt Colour</legend> | ||
|
|
||
| <label> | ||
| <input type="radio" name="colour" value="Black" required /> | ||
| Black | ||
| </label> | ||
|
|
||
| <label> | ||
| <input type="radio" name="colour" value="White" /> | ||
| White | ||
| </label> | ||
|
|
||
| <label> | ||
| <input type="radio" name="colour" value="Blue" /> | ||
| Blue | ||
| </label> | ||
| </fieldset> | ||
|
|
||
| <!-- T-Shirt Size --> | ||
| <label for="size">T-Shirt Size</label> | ||
|
|
||
| <select id="size" name="size"> | ||
| <option value="">Please choose a size</option> | ||
|
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. What happens when the user would submit the form with this value? |
||
| <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> | ||
|
|
||
|
|
||
| </form> | ||
| </main> | ||
| <footer> | ||
| <!-- change to your name--> | ||
| <p>By HOMEWORK SOLUTION</p> | ||
| <p>Mahdi Rafiei</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.
I see an error on the console when loading the page
Refused to apply style from 'http://127.0.0.1:5500/Form-Controls/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.