|
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8" /> |
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
6 | | - <title>My form exercise</title> |
| 6 | + <title>T-shirt Oder Form</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 | | - <h1>Product Pick</h1> |
| 13 | + <h1>T-shirt Order Form</h1> |
13 | 14 | </header> |
14 | | - <main> |
| 15 | + <main class="Form-container"> |
15 | 16 | <form> |
16 | | - <!-- write your html here--> |
17 | | - <!-- |
18 | | - try writing out the requirements first as comments |
19 | | - this will also help you fill in your PR message later--> |
| 17 | + <Fieldset> |
| 18 | + <div> |
| 19 | + <label for="name">Customer Name</label> |
| 20 | + <input |
| 21 | + type="text" |
| 22 | + id="name" |
| 23 | + name="name" |
| 24 | + pattern=".*\S.{1,}.*" |
| 25 | + title="Please enter at least two non-space characters." |
| 26 | + required/> |
| 27 | + </div> |
| 28 | + <div> |
| 29 | + <label for="email">Customer E-mail</label> |
| 30 | + <input |
| 31 | + type="email" |
| 32 | + id="email" |
| 33 | + name="email" |
| 34 | + required/> |
| 35 | + </div> |
| 36 | + <div> |
| 37 | + <label for="colour">Choose a Colour</label> |
| 38 | + <select id="colour" name="colour" required> |
| 39 | + <option value="">-- Select a colour --</option> |
| 40 | + <option value="black">Black</option> |
| 41 | + <option value="white">White</option> |
| 42 | + <option value="red">Red</option> |
| 43 | + </select> |
| 44 | + </div> |
| 45 | + <div> |
| 46 | + <label for="size">Select a Size</label> |
| 47 | + <select id="size" name="size" required> |
| 48 | + <option value="">-- Select a size --</option> |
| 49 | + <option value="XS">XS</option> |
| 50 | + <option value="S">S</option> |
| 51 | + <option value="M">M</option> |
| 52 | + <option value="L">L</option> |
| 53 | + <option value="XL">XL</option> |
| 54 | + <option value="XXL">XXL</option> |
| 55 | + </select> |
| 56 | + </div> |
| 57 | + <button type="submit">Submit Order</button> |
| 58 | + </Fieldset> |
20 | 59 | </form> |
21 | 60 | </main> |
22 | 61 | <footer> |
23 | | - <!-- change to your name--> |
24 | | - <p>By HOMEWORK SOLUTION</p> |
| 62 | + <p>By Dipa Sarker</p> |
25 | 63 | </footer> |
26 | 64 | </body> |
27 | 65 | </html> |
0 commit comments