Skip to content

Commit 06f259f

Browse files
add submit and reset button
1 parent c1b5342 commit 06f259f

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,37 @@ <h1>Pick product</h1>
1717
<!-- 1. What is the customer's name? I must collect this data and ensure it contains at least two non-space characters.-->
1818
<div>
1919
<label for="name">Name</label>
20-
<input type="text" name="name" id="name" pattern="`.*\S.*\S.">
20+
<input type="text" id="name" pattern="`.*\S.*\S.">
2121
</div>
22-
<label for="email">email</label>
23-
<input type="email" name="email" id="email">
22+
<br>
23+
<label for="email">Email</label>
24+
<input type="email" id="email">
2425
</div>
2526
<!--What colour should this T-shirt be? I must provide 3 options. How will I ensure they do not choose other colours? -->
26-
<label for="Color option">Color option</label>
27-
<select id="Coloroption" name="Color">
27+
<label for="coloroption">Color option</label>
28+
<select id="coloroption" name="Color">
2829
<option value="grey" >Grey</option>
2930
<option value="black">Black</option>
3031
<option value="red"> Red</option>
3132
</select>
33+
<br>
3234
<!--What size does the customer want? I must provide the following 6 options: XS, S, M, L, XL, XXL -->
3335
<label for="size">size</label>
34-
<select name="Size" id="Size">
36+
<select name="differentsize" id="size">
3537
<option value="XS" >XS</option>
3638
<option value="S" >S</option>
3739
<option value="M" >M</option>
3840
<option value="L" >L</option>
3941
<option value="XL" >XL</option>
4042
<option value="XXL" >XXL</option>
41-
42-
43-
</select>
44-
45-
43+
</select>
44+
<div>
45+
<input id="submit" type="submit">
46+
</div>
47+
<br>
48+
<div>
49+
<input id="submit" type="submit">
50+
</div>
4651
</form>
4752
</main>
4853
<footer>

0 commit comments

Comments
 (0)