-
-
Notifications
You must be signed in to change notification settings - Fork 546
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 all 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 |
|---|---|---|
|
|
@@ -4,24 +4,46 @@ | |
| <meta charset="utf-8" /> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
| <title>My form exercise</title> | ||
| <meta name="description" content="" /> | ||
| <meta name="description" content="Choose your preferred T-shirt color and size." /> | ||
| <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 method="get"> | ||
| <!-- 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" name="tshirt-color" value="red" required>Red</label><br> | ||
| <label><input type="radio" name="tshirt-color" value="blue">Blue</label><br> | ||
| <label><input type="radio" name="tshirt-color" value="green">Green</label><br> | ||
| </fieldset><br> | ||
|
|
||
| <!-- fieldset for tshirt size--> | ||
| <fieldset> | ||
| <legend>T-Shirt Size</legend> | ||
| <label><input type="radio" name="tshirt-size" value="extra-small" required>XS</label><br> | ||
| <label><input type="radio" name="tshirt-size" value="small">S</label><br> | ||
| <label><input type="radio" name="tshirt-size" value="medium">M</label><br> | ||
| <label><input type="radio" name="tshirt-size" value="large">L</label><br> | ||
| <label><input type="radio" name="tshirt-size" value="extra-large">XL</label><br> | ||
| <label><input type="radio" name="tshirt-size" value="double-extra-large">XXL</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.
Why introduce the
method="get"attribute explicitly?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.
GET is useful to search or view information, VS code made me add it and then later I realised it wasn't needed.