|
9 | 9 | </head>
|
10 | 10 | <body>
|
11 | 11 | <header>
|
12 |
| - <h1>Product Pick</h1> |
| 12 | + <h1>T-shirt order form</h1> |
13 | 13 | </header>
|
14 | 14 | <main>
|
15 |
| - <form> |
| 15 | + |
16 | 16 | <!-- write your html here-->
|
17 | 17 | <!--
|
18 | 18 | try writing out the requirements first as comments
|
19 |
| - this will also help you fill in your PR message later--> |
| 19 | + this will also help you fill in your PR message later-- |
| 20 | + //requierment |
| 21 | + //1- collect customer valid name (at least 2 character ) |
| 22 | + //2-customer email address (valid email address ) |
| 23 | + //3-allow customer to choose one color from defined three colors |
| 24 | + // 4-allow customer to choose one size from defined six size |
| 25 | +
|
| 26 | + <form action="" method="POST"> |
| 27 | + <h1>T-Shirt Order Form</h1> |
| 28 | +
|
| 29 | + <!--Customer's Name --> |
| 30 | + <label for="name">What is your name?</label> |
| 31 | + <input type="text" id="name" name="name" required minlength="2" placeholder="Enter your full name"> |
| 32 | + |
| 33 | + <!-- Customer's Email --> |
| 34 | + <label for="email">What is your email?</label> |
| 35 | + <input type="email" id="email" name="email" required placeholder="Enter a valid email"> |
| 36 | + |
| 37 | + <!-- T-Shirt Colour --> |
| 38 | + <label for="colour">What colour should this t-shirt be?</label> |
| 39 | + <select id="colour" name="colour" required> |
| 40 | + <option value="">Select a colour</option> |
| 41 | + <option value="red">Red</option> |
| 42 | + <option value="blue">Blue</option> |
| 43 | + <option value="green">Green</option> |
| 44 | + </select> |
| 45 | + |
| 46 | + <!-- T-Shirt Size --> |
| 47 | + <label for="size">What size would you like?</label> |
| 48 | + <select id="size" name="size" required> |
| 49 | + <option value="">Select a size</option> |
| 50 | + <option value="XS">XS</option> |
| 51 | + <option value="S">S</option> |
| 52 | + <option value="M">M</option> |
| 53 | + <option value="L">L</option> |
| 54 | + <option value="XL">XL</option> |
| 55 | + <option value="XXL">XXL</option> |
| 56 | + </select> |
| 57 | + |
| 58 | + <!-- Submit Button --> |
| 59 | + <button type="submit">Submit Order</button> |
20 | 60 | </form>
|
21 | 61 | </main>
|
22 | 62 | <footer>
|
23 | 63 | <!-- change to your name-->
|
24 |
| - <h2>By HOMEWORK SOLUTION</h2> |
| 64 | + <h2>By SARA AMIRI </h2> |
25 | 65 | </footer>
|
26 | 66 | </body>
|
27 | 67 | </html>
|
0 commit comments