-
-
Notifications
You must be signed in to change notification settings - Fork 500
London | 26-ITP-May | Mandip Sanger | Sprint 1 | Form Contols #1440
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 14 commits
3e0a907
a00382e
bd4b9d4
3d5a056
11f94cf
3fb6770
ac42a05
37f812a
9171f0e
a384733
4c7d762
b091bfa
4bee091
fea1e89
110cfc5
40013cb
bc41e3d
bde7096
e6e092c
13c95b9
8bd20f0
3bdb7dd
b9b22e6
607ff0e
3cc5aa8
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 |
|---|---|---|
| @@ -1,27 +1,60 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
| <title>My form exercise</title> | ||
| <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> | ||
| </html> | ||
| <html lang="en"User-agent: * | ||
| Allow: /> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
| <title>My form control</title> | ||
| <link rel="stylesheet" href="style.css"/> | ||
| <meta name="description" content="F" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| </head> | ||
| <body> | ||
| <header> | ||
| <h1></h1> | ||
| </header> | ||
|
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. What is this header doing? There's no text here. Empty elements should be removed |
||
| <main> | ||
| <form > | ||
| <div> | ||
| <label for="name">Name:</label> | ||
| <input type="text" id="name" name="name" | ||
| pattern="^\s*(\S\s*){2,}$" /> | ||
| </div> | ||
|
|
||
| <div> | ||
| <label for="email">Email:</label> | ||
| <input type="email" id="email" name="email" /> | ||
| </div> | ||
|
|
||
| <fieldset> | ||
| <legend>Please select your color</legend> | ||
|
|
||
| <input type="radio" id="black" name="color" value="Black"> | ||
| <label for="black">Black</label> | ||
|
|
||
| <input type="radio" id="beige" name="color" value="Beige"> | ||
| <label for="beige">Beige</label> | ||
|
|
||
| <input type="radio" id="red" name="color" value="Red"> | ||
| <label for="red">Red</label> | ||
| </fieldset> | ||
|
|
||
| <div> | ||
| <p>Please select a size</p> | ||
|
|
||
| <label for="size">Choose a size:</label> | ||
| <select name="size" id="size"> | ||
| <option value="xs">Extra Small</option> | ||
| <option value="small">Small</option> | ||
| <option value="medium">Medium</option> | ||
| <option value="large">Large</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. It could be useful here to have a default select option so that the form doesn't default to picking a size accidentally. E.g. if i don't pick a size, the form will submit XS but I might not want XS. It would be better to have a default value that doesn't let the user submit and forces them to select a size. |
||
| </select> | ||
| </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. How come you decided not to wrap this section in a fieldset tag but you wrapped lines 30 - 41 in a fieldset tag?
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. Thank you I think I have fixed the issues.
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. Could you please review my PR so I can submit the enrollment form. |
||
|
|
||
| <input type="submit" value="Submit"> | ||
|
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. I would have expected this to be a submit button |
||
| </form> | ||
| </main> | ||
| <footer>From control by Mandip sanger</footer> | ||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| header { | ||
| background-color: #49bb93; | ||
| color: white; | ||
| text-align: center; | ||
| padding: 20px; | ||
| } | ||
| h1 { | ||
| margin: 0; | ||
| } | ||
| fieldset { | ||
| margin-bottom: 20px; | ||
| padding: 15px; | ||
| border: 1px solid #bbb; | ||
| border-radius: 4px; | ||
| } | ||
| legend { | ||
| font-weight: bold; | ||
| padding: 05px; | ||
| } | ||
|
|
||
| fieldset input[type="radio"] { | ||
| margin-right: 5px; | ||
| } | ||
|
|
||
| fieldset label { | ||
| display: inline; | ||
| margin-right: 15px; | ||
| font-weight: normal; | ||
| } | ||
|
|
||
| body { | ||
| font-family: Arial, sans-serif; | ||
| background-color: #f5f7fa; | ||
| margin: 0; | ||
| padding: 0; | ||
| color: #333; | ||
| } | ||
| main { | ||
| display: flex; | ||
| justify-content: center; | ||
| padding: 30px 15px; | ||
| } | ||
| form { | ||
| background-color: white; | ||
| padding: 25px; | ||
| width: 100%; | ||
| max-width: 500px; | ||
| border-radius: 8px; | ||
| box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); | ||
| } | ||
| div { | ||
| margin-bottom: 20px; | ||
| } | ||
| label { | ||
| display: flex; | ||
| margin-bottom: 5px; | ||
| font-weight: bold; | ||
| } | ||
| input[type="text"], | ||
| input[type="email"], | ||
| select { | ||
| width: 100%; | ||
| padding: 10px; | ||
| border: 1px solid #bbb; | ||
| border-radius: 4px; | ||
| font-size: 1rem; | ||
| } | ||
| input[type="submit"] { | ||
| width: 100%; | ||
| background-color: #49bb93; | ||
| color: white; | ||
| border: none; | ||
| padding: 12px; | ||
| border-radius: 4px; | ||
| font-size: 1rem; | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| input[type="submit"]:hover { | ||
| background-color: #49bb93; | ||
| } | ||
| footer { | ||
| text-align: center; | ||
| background-color: #49bb93; | ||
| color: white; | ||
| padding: 15px; | ||
| margin-top: 20px; | ||
| } |
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.
What does
<html lang="en"User-agent: * Allow: />mean?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.
oh my bad. I was auto complete.