Skip to content

Commit a6d647c

Browse files
committed
changes done as per comment
1 parent ab96058 commit a6d647c

1 file changed

Lines changed: 21 additions & 24 deletions

File tree

Form-Controls/index.html

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
@@ -13,46 +13,43 @@ <h1>Product Pick</h1>
1313
</header>
1414
<main>
1515
<form>
16-
<div>
17-
<label for="name">Customer Name:</label>
18-
<input
19-
type="text"
20-
id="name"
21-
name="name"
22-
required pattern=".*\S.*\S.*"
23-
title="Please enter at least two non-space characters."
24-
>
16+
<div>
17+
<label for="name">Customer Name:</label>
18+
<input
19+
type="text"
20+
id="name"
21+
name="name"
22+
autocomplete="name"
23+
required
24+
pattern=".*\S.*\S.*"
25+
title="Please enter at least two non-space characters."
26+
/>
2527
</div>
2628
<div>
27-
<label for="email">Email:</label>
28-
<input
29-
type="email"
30-
id="email"
31-
name="email"
32-
required
33-
>
29+
<label for="email">Email:</label>
30+
<input type="email" id="email" name="email" required />
3431
</div>
3532
<div>
36-
<label for="color">T-shirt color:</label>
37-
<select id="color" name="color" required>
33+
<label for="color">T-shirt color:</label>
34+
<select id="color" name="color" required>
3835
<option value="">Please choose a color</option>
3936
<option value="Black">Black</option>
4037
<option value="White">White</option>
4138
<option value="Blue">Blue</option>
42-
</select>
39+
</select>
4340
</div>
4441
<div>
45-
<label for="size">T-shirt Size:</label>
46-
<select id="size" name="size" required>
42+
<label for="size">T-shirt size:</label>
43+
<select id="size" name="size" required>
4744
<option value="">Please choose a Size</option>
4845
<option value="XS">XS</option>
4946
<option value="S">S</option>
5047
<option value="M">M</option>
5148
<option value="L">L</option>
5249
<option value="XL">XL</option>
5350
<option value="XXL">XXL</option>
54-
</select>
55-
</div>
51+
</select>
52+
</div>
5653
<button type="submit">Submit</button>
5754
</form>
5855
</main>

0 commit comments

Comments
 (0)