|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en"> |
| 3 | + |
3 | 4 | <head> |
4 | 5 | <meta charset="utf-8" /> |
5 | 6 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
6 | 7 | <title>My form exercise</title> |
7 | 8 | <meta name="description" content="" /> |
8 | 9 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 10 | + <link rel = "stylesheet" href = "style.css"> |
9 | 11 | </head> |
| 12 | + |
10 | 13 | <body> |
| 14 | + |
11 | 15 | <header> |
12 | 16 | <h1>Product Pick</h1> |
13 | 17 | </header> |
14 | 18 | <main> |
15 | | - <form> |
| 19 | + |
| 20 | + <form method = "get" class = "form-container"> |
16 | 21 | <!-- 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--> |
| 22 | + <!--Requirements: |
| 23 | + 1. What is the customer's name? I must collect this data and ensure it contains at least two non-space characters. |
| 24 | + 2. What is the customer's email? I must make sure the email is valid. Email addresses follow a consistent pattern. |
| 25 | + 3. What colour should this T-shirt be? I must provide 3 options. How will I ensure they do not choose other colours? |
| 26 | + 4. What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL--> |
| 27 | + |
| 28 | + <label> Forename: </label> |
| 29 | + <input type = "text" for = "Forname:" minlength="2" required> |
| 30 | + <br> |
| 31 | + |
| 32 | + <label> Surname: </label> |
| 33 | + <input type = "text" for = "Surname:" minlength="2 " required> |
| 34 | + <br> |
| 35 | + |
| 36 | + <label> Email: </label> |
| 37 | + <input type = "email" for = "Email:" required> |
| 38 | + <br> |
| 39 | + |
| 40 | + <label> T-shirt Colour: </label> |
| 41 | + <select required> |
| 42 | + <option>White</option> |
| 43 | + <option>Black</option> |
| 44 | + <option>Grey</option> |
| 45 | + </select> |
| 46 | + <br> |
| 47 | + |
| 48 | + <label> T-shirt Size:</label> |
| 49 | + <select required> |
| 50 | + <option>XS</option> |
| 51 | + <option>S</option> |
| 52 | + <option>M</option> |
| 53 | + <option>L</option> |
| 54 | + <option>XL</option> |
| 55 | + <option>XXL</option> |
| 56 | + </select> |
| 57 | + <br> |
| 58 | + |
| 59 | + <button type ="submit">Submit</button> |
| 60 | + |
20 | 61 | </form> |
21 | 62 | </main> |
| 63 | + |
22 | 64 | <footer> |
23 | 65 | <!-- change to your name--> |
24 | | - <p>By HOMEWORK SOLUTION</p> |
| 66 | + <p>By Muhammad-Burhan Mustafa</p> |
25 | 67 | </footer> |
| 68 | + |
26 | 69 | </body> |
27 | 70 | </html> |
0 commit comments