Skip to content

Commit 5d2e6f6

Browse files
committed
Use consistent kebab-case form field names
1 parent 4ec919d commit 5d2e6f6

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ <h1>Product Pick</h1>
1616
<main>
1717
<form aria-label="T-shirt order form">
1818
<div class="form-group">
19-
<label for="name">Name</label>
19+
<label for="customer-name">Name</label>
2020
<input
21-
id="name"
22-
name="name"
21+
id="customer-name"
22+
name="customer-name"
2323
type="text"
2424
pattern=".*\S.*\S.*"
2525
title="Please enter at least two non-space characters."
@@ -28,10 +28,10 @@ <h1>Product Pick</h1>
2828
</div>
2929

3030
<div class="form-group">
31-
<label for="email">Email</label>
31+
<label for="customer-email">Email</label>
3232
<input
33-
id="email"
34-
name="email"
33+
id="customer-email"
34+
name="customer-email"
3535
type="email"
3636
required
3737
/>
@@ -40,26 +40,26 @@ <h1>Product Pick</h1>
4040
<fieldset class="form-group">
4141
<legend>Choose a colour</legend>
4242
<div class="radio-group">
43-
<label class="option" for="colour-red">
44-
<input id="colour-red" name="colour" type="radio" value="red" required />
43+
<label class="option" for="tshirt-colour-red">
44+
<input id="tshirt-colour-red" name="tshirt-colour" type="radio" value="red" required />
4545
<span>Red</span>
4646
</label>
4747

48-
<label class="option" for="colour-blue">
49-
<input id="colour-blue" name="colour" type="radio" value="blue" />
48+
<label class="option" for="tshirt-colour-blue">
49+
<input id="tshirt-colour-blue" name="tshirt-colour" type="radio" value="blue" />
5050
<span>Blue</span>
5151
</label>
5252

53-
<label class="option" for="colour-black">
54-
<input id="colour-black" name="colour" type="radio" value="black" />
53+
<label class="option" for="tshirt-colour-black">
54+
<input id="tshirt-colour-black" name="tshirt-colour" type="radio" value="black" />
5555
<span>Black</span>
5656
</label>
5757
</div>
5858
</fieldset>
5959

6060
<div class="form-group">
61-
<label for="size">Choose a size</label>
62-
<select id="size" name="size" required>
61+
<label for="tshirt-size">Choose a size</label>
62+
<select id="tshirt-size" name="tshirt-size" required>
6363
<option value="" selected disabled>Select a size</option>
6464
<option value="XS">XS</option>
6565
<option value="S">S</option>

0 commit comments

Comments
 (0)