-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Open
meneogbemi42-bit
wants to merge
13
commits into
CodeYourFuture:main
Choose a base branch
from
meneogbemi42-bit:bbm2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+152
−21
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
bc89d28
my form excesis
2f98a7b
my form working
c17d258
Change page title to 'T-shirt sales'
meneogbemi42-bit ad6aa94
Add email input and fix label formatting
meneogbemi42-bit ff30284
my new form for luke
67dbbd0
Merge branch 'bbm2' of https://github.com/meneogbemi42-bit/Module-Onb…
9eb7223
my new form control
89ac2e4
correction to the last comment
d2cfd22
removal of the untitled-1.html
47042be
my formated vasion
fbe384d
my new formated form
9137175
new formatted change
0d2fafa
formated code
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,77 @@ | ||
| <!DOCTYPE html> | ||
| <!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" /> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>My form exercise work</title> | ||
| <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--> | ||
| </form> | ||
| </main> | ||
| <footer> | ||
| <!-- change to your name--> | ||
| <p>By HOMEWORK SOLUTION</p> | ||
| </footer> | ||
| <h1>PRODUCT PICK</h1> | ||
|
|
||
| <form action="T-shirt.html" method="GET" class="form"> | ||
| <div> | ||
| <label for="name">NAME</label> | ||
| <input | ||
| type="text" | ||
| name="name" | ||
| id="name" | ||
| placeholder="Enter your name" | ||
| value="" | ||
| minlength="2" | ||
| maxlength="100" | ||
| required | ||
| /> | ||
| </div> | ||
|
|
||
| <div> | ||
| <label for="email">EMAIL</label> | ||
| <input | ||
| type="email" | ||
| name="email" | ||
| id="email" | ||
| placeholder="Enter your email" | ||
| value="" | ||
| required | ||
| /> | ||
| </div> | ||
|
|
||
| <div> | ||
| <label for="colour">colour of T-shirt</label> | ||
| <select name="colour" id="colour" required> | ||
| <option value="" disabled selected hidden> | ||
| Please choose a colour | ||
| </option> | ||
| <option value="red">red</option> | ||
| <option value="blue">blue</option> | ||
| <option value="green">green</option> | ||
| </select> | ||
| </div> | ||
|
|
||
| <div> | ||
| T-shirt size | ||
| <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="" disabled selected hidden>Select 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> | ||
|
|
||
| <button type="submit">Submit</button> | ||
|
|
||
| <p> | ||
| We are selling T-shirts. this is a form to collect the following data Of | ||
| our customers who already have accounts, so we know their addresses and | ||
| charging, We want to confirm they are the right person, then get them to | ||
| choose a colour and size. | ||
| </p> | ||
| </form> | ||
| </body> | ||
| </html> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
|
|
||
| body { | ||
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | ||
| background-color: #f4f7f6; | ||
| margin: 0; | ||
| padding: 20px; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| justify-content: center; | ||
| min-height: 100vh; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| h1 { | ||
| color: #2c3e50; | ||
| margin-bottom: 20px; | ||
| font-size: 2rem; | ||
| } | ||
|
|
||
| .form { | ||
| background-color: #ffffff; | ||
| padding: 30px; | ||
| border-radius: 8px; | ||
| box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); | ||
| width: 100%; | ||
| max-width: 400px; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| .form > div { | ||
| margin-bottom: 20px; | ||
| display: flex; | ||
| flex-direction: column; | ||
| } | ||
|
|
||
| label { | ||
| font-size: 0.85rem; | ||
| font-weight: 600; | ||
| color: #34495e; | ||
| margin-bottom: 8px; | ||
| text-transform: uppercase; | ||
| letter-spacing: 0.5px; | ||
| } | ||
|
|
||
| input[type="text"], | ||
| input[type="email"], | ||
| select { | ||
| padding: 10px 14px; | ||
| font-size: 1rem; | ||
| border: 1px solid #ccc; | ||
| border-radius: 4px; | ||
| background-color: #fff; | ||
| color: #333; | ||
| outline: none; | ||
| transition: border-color 0.2s ease, box-shadow 0.2s ease; | ||
| } | ||
|
|
||
| input:focus, | ||
| select:focus { | ||
| border-color: #3498db; | ||
| box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15); | ||
| } | ||
|
|
||
| button { | ||
| background-color: #366280; | ||
| color: white; | ||
| border: none; | ||
| padding: 12px; | ||
| font-size: 1rem; | ||
| font-weight: 600; | ||
| border-radius: 4px; | ||
| cursor: pointer; | ||
| width: 100%; | ||
| transition: background-color 0.2s ease; | ||
| margin-top: 10px; | ||
| } | ||
|
|
||
| button:hover { | ||
| background-color: #2980b9; | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?