|
6 | 6 | <title>My form exercise</title> |
7 | 7 | <meta name="description" content="" /> |
8 | 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 type="text" id="name" name="name" required pattern="[A-za-z/s]{2,50}"/> |
| 22 | + <br /> |
| 23 | + <label for="email">Email:*</label> |
| 24 | + <input type="email" id="email" name="email" required /> |
| 25 | + </fieldset> |
| 26 | + |
17 | 27 | <!-- |
18 | | - try writing out the requirements first as comments |
19 | | - this will also help you fill in your PR message later--> |
| 28 | + customer name, with validation |
| 29 | + customer's email |
| 30 | + ---- The upper one customer information----- |
| 31 | + // |
| 32 | + ---- The lower one product information----- |
| 33 | + color of T-shire (choose one from 3 option) |
| 34 | + size of T-shirt (choose one from xs, s, m, l, xl,xxl)--> |
| 35 | + <fieldset> |
| 36 | + <legend>Product Information</legend> |
| 37 | + <label for="color">Color:*</label> |
| 38 | + <select id="color" name="color" required> |
| 39 | + <option value="">--Please choose a color--</option> |
| 40 | + <option value="red">Red</option> |
| 41 | + <option value="blue">Blue</option> |
| 42 | + <option value="green">Green</option> |
| 43 | + </select> |
| 44 | + <br /> |
| 45 | + <label for="size">Size:*</label> |
| 46 | + <select id="size" name="size" required> |
| 47 | + <option value="">--Please choose a size--</option> |
| 48 | + <option value="xs">XS</option> |
| 49 | + <option value="s">S</option> |
| 50 | + <option value="m">M</option> |
| 51 | + <option value="l">L</option> |
| 52 | + <option value="xl">XL</option> |
| 53 | + <option value="xxl">XXL</option> |
| 54 | + </select> |
| 55 | + </fieldset> |
20 | 56 | </form> |
21 | 57 | </main> |
22 | 58 | <footer> |
23 | 59 | <!-- change to your name--> |
24 | | - <p>By HOMEWORK SOLUTION</p> |
| 60 | + <p>By Dagim Daniel</p> |
25 | 61 | </footer> |
26 | 62 | </body> |
27 | 63 | </html> |
0 commit comments