-
-
Notifications
You must be signed in to change notification settings - Fork 546
London| 26-ITP-Sep|Perrila Tamang|Sprint 1|Form controls #1491
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
9326bc1
d6ba3b7
8d1021c
fb75252
06185f9
3969597
79d3059
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 |
|---|---|---|
|
|
@@ -6,22 +6,101 @@ | |
| <title>My form exercise</title> | ||
| <meta name="description" content="" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <link rel="stylesheet" href="style.css"> | ||
|
|
||
| </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--> | ||
|
|
||
| <div> | ||
| <label for="name">Name</label> | ||
| <input | ||
| type="text" | ||
| name="name" | ||
| id="name" | ||
| placeholder="Username" | ||
| autocomplete="name" | ||
| pattern=".*\S.*\S.*" | ||
| title="Please enter at least two non-space characters." | ||
| required | ||
| /> | ||
| </div> | ||
|
|
||
| <div> | ||
| <label for="email">Email</label> | ||
| <input | ||
| type="email" | ||
| name="email" | ||
| id="email" | ||
| placeholder="Email" | ||
| required | ||
| /> | ||
| </div> | ||
|
|
||
|
|
||
|
|
||
| <legend>T-shirt Color</legend> | ||
|
|
||
|
|
||
| <div> | ||
| <label for="red">Red</label> | ||
| <input | ||
| type="radio" | ||
| name="color" | ||
| id="red" | ||
| value="Red" | ||
| required | ||
| /> | ||
| </div> | ||
|
|
||
| <div> | ||
| <label for="blue">Blue</label> | ||
| <input | ||
| type="radio" | ||
| name="color" | ||
| id="blue" | ||
| value="Blue" | ||
| /> | ||
| </div> | ||
|
|
||
| <div> | ||
| <label for="pink">Pink</label> | ||
| <input | ||
| type="radio" | ||
| name="color" | ||
| id="pink" | ||
| value="Pink" | ||
| /> | ||
| </div> | ||
|
|
||
| <div> | ||
| <label for="size">T-shirt Size</label> | ||
| <select name="T-shirt-size" id="size" required> | ||
| <option value="">Select a size</option> | ||
| <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> | ||
|
|
||
|
|
||
| <div> | ||
|
Comment on lines
+89
to
+95
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. Indentation is off. Suggestion:
Resource: Visual Studio Code - Formatting
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. Thanks for spotting that! I have corrected the indentation. |
||
| <button type="reset">Reset</button> | ||
| <button type="submit">Submit</button> | ||
| </div> | ||
| </form> | ||
| </main> | ||
|
|
||
| <footer> | ||
| <!-- change to your name--> | ||
| <p>By HOMEWORK SOLUTION</p> | ||
| <p>By Perrila Tamang</p> | ||
| </footer> | ||
| </body> | ||
| </html> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
|
|
||
| button, | ||
| select { | ||
| min-height: 44px; | ||
| padding: 8px 12px; | ||
| } | ||
|
|
||
| button { | ||
| margin-right: 8px; | ||
| } | ||
|
|
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.
Chrome's "Developer tools" identified this possible improvement:
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.
Updated to include the autocomplete attribute. Thanks for the suggestion!