Repository navigation
Manchester | 25-ITP-Sep | Fatima Rouchi | Sprint 1 | Form Controls #1492
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 7 commits
70fadbd
a8221e6
f4006e4
0cb0ba4
1e9d2a1
8dcf268
b9f5a28
397c84e
6c73392
748213c
420b6a5
2c6ca50
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 |
|---|---|---|
|
|
@@ -13,15 +13,36 @@ <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--> | ||
| <!-- label for the name input --> | ||
| <label for="name">Name:</label> | ||
| <input type="text" id="name" name="name" required pattern=".*\S.*\S.*"><br><br> | ||
|
|
||
| <!-- label for the email input --> | ||
| <label for="email">Email:</label> | ||
| <input type="email" id="email" name="email" required><br><br> | ||
|
|
||
| <!--fieldset for tshirt color--> | ||
| <fieldset> | ||
| <legend>T-Shirt Color</legend> | ||
| <label><input type="radio" id="red" name="tshirt-color" value="red" required>Red</label><br> | ||
| <label><input type="radio" id="blue" name="tshirt-color" value="blue" required>Blue</label><br> | ||
| <label><input type="radio" id="green" name="tshirt-color" value="green" required>Green</label><br> | ||
|
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 slightly off. Suggestion:
Resource: Visual Studio Code - Formatting
|
||
| </fieldset><br> | ||
|
|
||
| <!-- fieldset for tshirt size--> | ||
| <fieldset> | ||
| <legend>T-Shirt Size</legend> | ||
| <label><input type="checkbox" id="extra-small" name="tshirt-size" value="extra-small" required>XS</label><br> | ||
| <label><input type="checkbox" id="small" name="tshirt-size" value="small" required>S</label><br> | ||
| <label><input type="checkbox" id="medium" name="tshirt-size" value="medium" required>M</label><br> | ||
| <label><input type="checkbox" id="large" name="tshirt-size" value="large" required>L</label><br> | ||
| <label><input type="checkbox" id="extra-large" name="tshirt-size" value="extra-large" required>XL</label><br> | ||
| </fieldset><br> | ||
|
Comment on lines
+26
to
+41
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.
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 for your feedback, hopefully I managed to correct the mistakes. |
||
| <button type="submit">Submit</button> | ||
| </form> | ||
| </main> | ||
| <footer> | ||
| <!-- change to your name--> | ||
| <p>By HOMEWORK SOLUTION</p> | ||
| <p>By FATIMA ROUCHI</p> | ||
| </footer> | ||
| </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.
Note: Chrome Developer Tools and AI tools may provide useful insights into how we can further improve our implementation. While you are not required to follow their suggestions in every exercise, taking the time to consider them can often help us learn more effectively.
Here's an example,