|
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="/styles.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 | | - <!-- |
18 | | - try writing out the requirements first as comments |
19 | | - this will also help you fill in your PR message later--> |
| 17 | + <fieldset> |
| 18 | + <legend>Order Form</legend> |
| 19 | + <!--Name at least 2 non space characters--> |
| 20 | + <label for="name">Name</label> |
| 21 | + <input type="text" name="name" id="name" pattern=".*\S.*\S.*" placeholder="James" required> |
| 22 | + <!--EMAIL--> |
| 23 | + <label for="email">Email Address</label> |
| 24 | + <input type="email" name="email" id="email" required placeholder="myemail@email.com"> |
| 25 | + <!--Color 3 options with select NO multiselect--> |
| 26 | + <label for="colorOptions">Choose Color</label> |
| 27 | + <select id="colorOptions" name="color" required> |
| 28 | + <option hidden></option> |
| 29 | + <option value="grey" >Grey</option> |
| 30 | + <option value="black" >Black</option> |
| 31 | + <option value="white" >White</option> |
| 32 | + </select> |
| 33 | + |
| 34 | + <!--SIZE 6 options XS,S,M,L,XL,XXL--> |
| 35 | + <p>Choose Size:</p> |
| 36 | + |
| 37 | + <label for="xs">XS</label> |
| 38 | + <input type="radio" id="xs" name="size" value="xs" required> |
| 39 | + |
| 40 | + <label for="s">S</label> |
| 41 | + <input type="radio" id="s" name="size" value="s"> |
| 42 | + |
| 43 | + <label for="m">M</label> |
| 44 | + <input type="radio" id="m" name="size" value="m"> |
| 45 | + |
| 46 | + <label for="l">L</label> |
| 47 | + <input type="radio" id="l" name="size" value="l"> |
| 48 | + |
| 49 | + <label for="xl">XL</label> |
| 50 | + <input type="radio" id="xl" name="size" value="xl"> |
| 51 | + |
| 52 | + <label for="xxl">XXL</label> |
| 53 | + <input type="radio" id="xxl" name="size" value="xxl"> |
| 54 | + |
| 55 | + </fieldset> |
| 56 | + |
| 57 | + <div id="buttonGroup"> |
| 58 | + <button type="submit">Submit</button> |
| 59 | + <button type="reset">Reset</button> |
| 60 | + </div> |
| 61 | + |
20 | 62 | </form> |
21 | 63 | </main> |
22 | 64 | <footer> |
23 | 65 | <!-- change to your name--> |
24 | | - <p>By HOMEWORK SOLUTION</p> |
| 66 | + <p>By Bartosz Kawiak</p> |
25 | 67 | </footer> |
26 | 68 | </body> |
27 | 69 | </html> |
0 commit comments