|
1 | | -<!DOCTYPE html> |
| 1 | +<!doctype html> |
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | | - <meta charset="utf-8" /> |
5 | | - <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 4 | + <meta charset="utf-8" > |
| 5 | + <meta http-equiv="X-UA-Compatible" content="IE=edge" > |
6 | 6 | <title>My form exercise</title> |
7 | | - <meta name="description" content="" /> |
8 | | - <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 7 | + <meta name="description" content="" > |
| 8 | + <meta name="viewport" content="width=device-width, initial-scale=1" > |
| 9 | + <link rel="stylesheet" href="style.css" > |
9 | 10 | </head> |
10 | 11 | <body> |
11 | 12 | <header> |
12 | 13 | <h1>Product Pick</h1> |
13 | 14 | </header> |
14 | 15 | <main> |
15 | 16 | <form> |
16 | | - <!-- write your html here--> |
| 17 | + <p>please enter the required (*) information to order your T-shirt.</p> |
| 18 | + <fieldset> |
| 19 | + <legend>Customer Information</legend> |
| 20 | + <label for="name">Name:*</label> |
| 21 | + <input |
| 22 | + type="text" |
| 23 | + id="name" |
| 24 | + name="name" |
| 25 | + required |
| 26 | + pattern="[A-Za-z\s]{2,50}" |
| 27 | + > |
| 28 | + <br > |
| 29 | + <p> |
| 30 | + Please enter a valid name (2-50 characters, letters and spaces |
| 31 | + only). |
| 32 | + </p> |
| 33 | + <br > |
| 34 | + <label for="email">Email:*</label> |
| 35 | + <input type="email" id="email" name="email" required > |
| 36 | + </fieldset> |
| 37 | + |
17 | 38 | <!-- |
18 | | - try writing out the requirements first as comments |
19 | | - this will also help you fill in your PR message later--> |
| 39 | + customer name, with validation |
| 40 | + customer's email |
| 41 | + - - The upper one customer information - - |
| 42 | + // |
| 43 | + - -The lower one product information - - |
| 44 | + colour of T-shire (choose one from 3 option) |
| 45 | + size of T-shirt (choose one from xs, s, m, l, xl,xxl)--> |
| 46 | + <fieldset> |
| 47 | + <legend>Product Information</legend> |
| 48 | + <label for="colour">Colour:*</label> |
| 49 | + <select id="colour" name="colour" required> |
| 50 | + <option value="">--Please choose a colour--</option> |
| 51 | + <option value="red">Red</option> |
| 52 | + <option value="blue">Blue</option> |
| 53 | + <option value="green">Green</option> |
| 54 | + </select> |
| 55 | + <br > |
| 56 | + <label for="size">Size:*</label> |
| 57 | + <select id="size" name="size" required> |
| 58 | + <option value="">--Please choose a size--</option> |
| 59 | + <option value="xs">XS</option> |
| 60 | + <option value="s">S</option> |
| 61 | + <option value="m">M</option> |
| 62 | + <option value="l">L</option> |
| 63 | + <option value="xl">XL</option> |
| 64 | + <option value="xxl">XXL</option> |
| 65 | + </select> |
| 66 | + </fieldset> |
| 67 | + <label for="submit"></label> |
| 68 | + <input type="submit" id="submit" value="Submit Order" > |
20 | 69 | </form> |
21 | 70 | </main> |
22 | 71 | <footer> |
23 | 72 | <!-- change to your name--> |
24 | | - <p>By HOMEWORK SOLUTION</p> |
| 73 | + <p>By Dagim Daniel</p> |
25 | 74 | </footer> |
26 | 75 | </body> |
27 | 76 | </html> |
0 commit comments