-
-
Notifications
You must be signed in to change notification settings - Fork 497
London | 26-ITP-May | Risikat Popoola | Sprint 1 | Form Controls #1351
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
d55dd23
dcc5e0b
5bb4747
626f08c
d0003e4
75ba07b
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,107 @@ | |
| <title>My form exercise</title> | ||
| <meta name="description" content="" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
| <style> | ||
| h1{ | ||
| color:rgb(127, 24, 175); | ||
| font-family:serif; | ||
| font-size:60px; | ||
| text-align: left; | ||
| font-style: oblique; | ||
| } | ||
| label{ | ||
| font-size: 22px; | ||
| color: rgb(29, 45, 133); | ||
| } | ||
| h2{ | ||
| font-size: 25px; | ||
| color: rgb(127, 24, 175);; | ||
| } | ||
| #wall{ | ||
| background-color:rgb(160, 243, 243); | ||
| padding:6px 6px; | ||
| border: 6px solid black; | ||
| max-width:70%; | ||
| margin: 3px auto; | ||
| } | ||
| footer{ | ||
| font-family: Arial, Helvetica, sans-serif; | ||
| font-size: 20px; | ||
| text-align: center; | ||
| } | ||
| </style> | ||
| </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> | ||
| <div id="wall"> | ||
| <header> | ||
| <h1>Product Pick</h1> | ||
| </header> | ||
| <main> | ||
| <form> | ||
| <!-- write your html here--> | ||
| <!--What is the customer's name? I must collect this data and ensure it contains at least two non-space characters. | ||
| What is the customer's email? I must make sure the email is valid. Email addresses follow a consistent pattern. | ||
| What colour should this T-shirt be? I must provide 3 options. How will I ensure they do not choose other colours? | ||
| What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL--> | ||
| <div> | ||
| <label for="name">Name:</label> | ||
| <input type="text" id="name" name="name" pattern=".*\S.*\S.*" required title="Please enter at least two non-space characters"> | ||
| </div> | ||
| <div> | ||
| <label for="email">Email</label> | ||
| <input type="email" id="email" name="email" required> | ||
| </div> | ||
| <div> | ||
| <h2>COLOR</h2> | ||
| <div> | ||
| <label for="purple">Purple</label> | ||
| <input type="radio" name="color" id="purple" value="purple"> | ||
| </div> | ||
| <div> | ||
| <label for="blue">Blue</label> | ||
| <input type="radio" name="color" id="blue" value="blue"> | ||
| </div> | ||
| <div> | ||
| <label for="wine">Wine</label> | ||
| <input type="radio" name="color" id="wine" value="wine"> | ||
| </div> | ||
| </div> | ||
| <div> | ||
| <h2>SIZE</h2> | ||
| <div> | ||
| <label for="extrasmall">XS</label> | ||
| <input type="radio" name="size" id="extrasmall" value="xs"> | ||
| </div> | ||
|
Comment on lines
+76
to
+79
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.
|
||
| <div> | ||
| <label for="small">S</label> | ||
| <input type="radio" name="size" id="small" value="s"> | ||
| </div> | ||
| <div> | ||
| <label for="medium">M</label> | ||
| <input type="radio" name="size" id="medium" value="m"> | ||
| </div> | ||
| <div> | ||
| <label for="large">L</label> | ||
| <input type="radio" name="size" id="large" value="l"> | ||
| </div> | ||
| <div> | ||
| <label for="extralarge">XL</label> | ||
| <input type="radio" name="size" id="extralarge" value="xtralarge"> | ||
|
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. Can you make the value of this |
||
| </div> | ||
| <div> | ||
| <label for="doubleextralarge">XXL</label> | ||
| <input type="radio" name="size" id="doubleextralarge" value="xxl"> | ||
| </div> | ||
| <div> | ||
| <button type="submit">Submit</button> | ||
| </div> | ||
| </div> | ||
| </form> | ||
| </main> | ||
| <footer> | ||
| <!-- change to your name--> | ||
| <p>Rizqah Popoola</p> | ||
| </footer> | ||
| </div> | ||
| </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.
Consider moving the CSS into an external
.cssfile instead of embedding them within the HTML document.This improves maintainability, keeps the markup cleaner, and makes it easier to locate, update, and reuse styles across multiple pages.