-
-
Notifications
You must be signed in to change notification settings - Fork 491
Birmingham | MAY 2026 | Ogbemi Mene | Sprint 1 | Form control #1294
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 |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
|
|
||
| body { | ||
| background-color: #7a8f88; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| height: 100vh; | ||
| margin: 0; | ||
| } | ||
|
|
||
| form { | ||
| background: #9b7a7a; | ||
| padding: 2rem; | ||
| border-radius: 8px; | ||
| box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); | ||
| width: 100%; | ||
| max-width: 400px; | ||
| } | ||
|
|
||
| form div { | ||
| margin-bottom: 1.5rem; | ||
| display: flex; | ||
| flex-direction: column; | ||
| } | ||
| label { | ||
| font-weight: bold; | ||
| font-size: 0.85rem; | ||
| margin-bottom: 0.5rem; | ||
| color: #333; | ||
| text-transform: uppercase; | ||
| } | ||
|
|
||
| input[type="text"], | ||
| input[type="email"], | ||
| select { | ||
| padding: 10px; | ||
| border: 1px solid #817575; | ||
| border-radius: 4px; | ||
| font-size: 1rem; | ||
| outline: none; | ||
| transition: border-color 0.3s; | ||
| } | ||
|
|
||
| input:focus, | ||
| select:focus { | ||
| border-color: #007bff; | ||
| } | ||
|
|
||
| button { | ||
| width: 100%; | ||
| padding: 12px; | ||
| background-color: #28a745; | ||
| color: white; | ||
| border: none; | ||
| border-radius: 4px; | ||
| font-size: 1.1rem; | ||
| cursor: pointer; | ||
| transition: background-color 0.3s; | ||
| } | ||
|
|
||
| button:hover { | ||
| background-color: #218838; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,50 @@ | ||
| <!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> | ||
| <head> | ||
|
|
||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>T-shirt sales</title> | ||
| <link rel="stylesheet" href="Untitled-1.css"> | ||
|
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 else could you use as file name for the stylesheet to adhere more to standard naming? |
||
| </head> | ||
|
|
||
| <body> | ||
|
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. Where does the body end? |
||
| <form action="T-shirt.html" method="GET"> | ||
|
|
||
| <div> | ||
| <label for="name">NAME</label> | ||
| <input type="text" name="name" id="name" placeholder="name" value="name" required> | ||
|
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 can you ensure that the name has at least 2 characters? |
||
| </div> | ||
|
|
||
| <div> | ||
|
|
||
| <label for="email">EMAIL</label> | ||
| <input type="email" name="email" id="email" placeholder="email" value="email" required> | ||
| </div> | ||
|
|
||
| <div> | ||
|
|
||
| <label for="colour">colour of T-shirt</label> | ||
| <select name="colour" id="colour"> | ||
| <option value="red">red</option> | ||
| <option value="blue">blue</option> | ||
| <option value="green">green</option> | ||
| </select> | ||
| </div> | ||
|
|
||
| <div> | ||
|
|
||
| <label for="size">size of T-shirt</label> | ||
|
|
||
| <select name="size" id="size" required> | ||
|
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. The XS option is missing here |
||
| <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> | ||
|
|
||
| <button>Submit</button> | ||
|
|
||
|
|
||
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 3 errors when checking the file in the w3 validator. How can you fix them?