Skip to content

Commit 922ea09

Browse files
committed
Color Selection
1 parent 10dcfdb commit 922ea09

1 file changed

Lines changed: 24 additions & 5 deletions

File tree

Form-Controls/index.html

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,36 @@ <h1>Product Pick</h1>
1515
<form>
1616
<div>
1717
<label for="full-name">Name</label>
18-
<input type="text" id="full-name" name="full-name" required minlength="2" pattern=".*\S,*\S.*" title="Please enter at least two nonspace characters">
18+
<input
19+
type="text"
20+
id="full-name"
21+
name="full-name"
22+
required
23+
minlength="2"
24+
pattern=".*\S,*\S.*"
25+
title="Please enter at least two nonspace characters">
1926
</div>
2027
<div>
2128
<label for="email">Email</label>
22-
<input type="email" id="email" name="email" required>
23-
24-
</div>
29+
<input
30+
type="email"
31+
id="email"
32+
name="email"
33+
required>
34+
</div>
35+
<div>
36+
<label for="colour">Colour</label>
37+
<select id="colour" name="colour" required>
38+
<option value="">Select a colour</option>
39+
<option value="red">Red</option>
40+
<option value="blue">Blue</option>
41+
<option value="green">Green</option>
42+
</select>
43+
</div>
2544
<button>submit</button>
2645
<!--
2746
checklist:
28-
1. Name: min 2 non-space characters
47+
1. Name: min 2 non-space characters
2948
2. Email: valid email format
3049
3. Colour: 3 options
3150
4. Size: 6 options (xs-s-m-l-xl-xxl)

0 commit comments

Comments
 (0)