-
-
Notifications
You must be signed in to change notification settings - Fork 432
London | 26-ITP-January | Rawan Almutairi | Sprint 2 | Form-control #1194
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 |
|---|---|---|
| @@ -1,27 +1,86 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
| <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 name="form-controls" content="This page contains a product web form"> | ||
| > | ||
| <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| </head> | ||
| <body> | ||
| <img src="t-shirt1.jpg" alt="background image" style="height: 100%; | ||
| text-align: center; position:fixed; left: 30%; top: 0;"> | ||
| <header> | ||
| <h1>Product Pick</h1> | ||
| </header> | ||
| <main> | ||
| <form> | ||
| <!-- write your html here--> | ||
| <!-- autocomplete attribute--> | ||
|
|
||
| <form action="/action_page.php" method="get" autocomplete="on"></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> | ||
|
|
||
| <!--the minlength and maxlength attribute--> | ||
| <p>Enter Your Name!</p> | ||
| <label for="fname">First Name:</label> | ||
| <input type="text" id="lname" name="lname" minlength="2" maxlength="10" pattern="[A-Z][a-z]+" required><br><br> | ||
|
|
||
| <label for="lname"> Last Name:</label> | ||
| <input type="text" id="lname" name="lname" minlength="2" maxlength="10" pattern="[A-Z][a-z]+" required><br><br> | ||
|
|
||
|
|
||
|
|
||
| <label for="email">Enter Your Email:</label> | ||
| <input type="email" id="email" name="email" autocomplete="on" required><br><br> | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| <p>select a color for your t-shirt:</p> | ||
|
|
||
| <label for="color1"> Red</label> | ||
| <input type="checkbox" id="color1" name="color1" style="font-size: 23px; margin-left: 12px;" value="Red"><br><br> | ||
| <label for="color2"> Blue</label> | ||
|
Comment on lines
+44
to
+45
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.
|
||
| <input type="checkbox" id="color2" name="color2" style="font-size: 23px; margin-left: 10px;" value="Blue"><br><br> | ||
| <label for="color3"> Black</label> | ||
| <input type="checkbox" id="color3" name="color3" value="Black"><br><br> | ||
| <!-- | ||
| <P>Select a size for your t-shirt:</p> | ||
| <input list="size" name="sie"> | ||
| <datalist id="size"> | ||
|
Comment on lines
+50
to
+52
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. Code on this file is not yet properly indented. Consider using VSCode's "Format Document" feature (or any other software tool) to format the code for better readability and consistency. To use the VSCode's feature, right-click inside the code editor and select the option. |
||
|
|
||
| <option value="xs"></option> | ||
| <option value="s"></option> | ||
| <option value="m"></option> | ||
| <option value="l"></option> | ||
| <option value="xl"></option> | ||
|
|
||
| </datalist> | ||
|
Comment on lines
+54
to
+60
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. If this code are not needed, it is better to delete them to keep the code clean. |
||
| --> | ||
| <!--the radio buttons--> | ||
| <!-- fixing the touch target size--> | ||
| <input type="radio" id="xs" name="size" style="min-width:24px; min-height:24px; padding:8px 12px; margin:4px;font-size: 24px; margin-left: 20px;" value="XS"> | ||
| <label for="xs">XS</label><br> | ||
| <input type="radio" id="s" name="size" style="min-width:44px; min-height:24px; padding: 8px 12px; margin:4px;font-size: 24px; margin-left: 10px;" value="S"> | ||
| <label for="s">S</label><br> | ||
| <input type="radio" id="m" name="size" style="min-width:44px; min-height:24px; padding: 8px 12px; margin:4px;font-size: 24px; margin-left: 10px;" value="M"> | ||
| <label for="m">M</label><br> | ||
| <input type="radio" id="l" name="size" style="min-width:44px; min-height:24px; padding: 8px 12px; margin:4px;font-size: 24px; margin-left: 10px;"value="L"> | ||
| <label for="l">L</label><br> | ||
| <input type="radio" id="xl" name="size" style="min-width:44px; min-height:24px; padding: 8px 12px; margin:4px;font-size: 24px; margin-left: 10px;"value="XL"> | ||
| <label for="xl">XL</label><br> | ||
|
|
||
|
Comment on lines
+64
to
+74
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. This implementation does not yet meet the requirement specified in the |
||
| <input type="submit" style="font-size: 15px; margin-top: 15px; width: 60px; value= Submit"> | ||
|
|
||
|
|
||
|
|
||
| </main> | ||
| <footer> | ||
| <!-- change to your name--> | ||
| <p>By HOMEWORK SOLUTION</p> | ||
| <h2>Rawan</h2> | ||
| </footer> | ||
| </body> | ||
| </html> | ||
|
|
||
|
|
||
| </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.
What is this image? Currently it is showing up as a corrupted icon on the page.