|
1 | | -<!doctype html> |
| 1 | +<!DOCTYPE html> |
2 | 2 | <html lang="en"> |
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8" /> |
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
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" /> |
10 | 9 | </head> |
11 | 10 | <body> |
12 | 11 | <header> |
13 | 12 | <h1>Product Pick</h1> |
14 | 13 | </header> |
15 | 14 | <main> |
16 | 15 | <form> |
| 16 | + <!-- write your html here--> |
17 | 17 | <!-- |
18 | | - Requirements: |
19 | | - - Name: required, at least 2 non-space characters |
20 | | - - Email: required, valid email format |
21 | | - - Colour: required, choose 1 of 3 options |
22 | | - - Size: required, choose 1 of 6 sizes |
23 | | - - No form action needed for this project |
24 | | - --> |
25 | | - <div class="field"> |
26 | | - <label for="name">Name</label> |
27 | | - <input |
28 | | - type="text" |
29 | | - id="name" |
30 | | - name="name" |
31 | | - pattern=".*\S.*\S.*" |
32 | | - required |
33 | | - /> |
34 | | - </div> |
35 | | - <div class="field"> |
36 | | - <label for="email">Email</label> |
37 | | - <input type="email" id="email" name="email" required /> |
38 | | - </div> |
39 | | - <fieldset> |
40 | | - <legend>Colour</legend> |
41 | | - |
42 | | - <label> |
43 | | - <input type="radio" name="colour" value="black" required /> Black |
44 | | - </label> |
45 | | - |
46 | | - <label> |
47 | | - <input type="radio" name="colour" value="white" /> White |
48 | | - </label> |
49 | | - |
50 | | - <label> <input type="radio" name="colour" value="red" /> Red </label> |
51 | | - </fieldset> |
52 | | - <div class="field"> |
53 | | - <label for="size">Size</label> |
54 | | - <select id="size" name="size" required> |
55 | | - <option value="">Select a size</option> |
56 | | - <option value="XS">XS</option> |
57 | | - <option value="S">S</option> |
58 | | - <option value="M">M</option> |
59 | | - <option value="L">L</option> |
60 | | - <option value="XL">XL</option> |
61 | | - <option value="XXL">XXL</option> |
62 | | - </select> |
63 | | - </div> |
64 | | - <button type="submit">Submit</button> |
| 18 | + try writing out the requirements first as comments |
| 19 | + this will also help you fill in your PR message later--> |
65 | 20 | </form> |
66 | 21 | </main> |
67 | 22 | <footer> |
68 | 23 | <!-- change to your name--> |
69 | | - <p>By Lamla Kamana</p> |
| 24 | + <p>By HOMEWORK SOLUTION</p> |
70 | 25 | </footer> |
71 | 26 | </body> |
72 | 27 | </html> |
0 commit comments