Skip to content

Commit f409355

Browse files
add div for labels
1 parent 2f0ee3b commit f409355

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

Form-Controls/index.html

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,22 @@ <h1>Product Pick</h1>
2323
<main>
2424
<form>
2525
<!-- -->
26+
<div>
2627
<label for="customername">Customer name: </label>
2728
<input type="text" id="customername" name="customername" required
2829
pattern="^[A-Za-z]{2,}$"
2930
placeholder="Customer name"/>
30-
<br/>
31+
</div>
3132

33+
<div>
3234
<label for="customeremail">Customer email: </label>
3335
<input type="email" id="customeremail" name="customeremail" required
3436
pattern="^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$"
3537
placeholder="Customer email" />
36-
<br />
38+
</div>
3739

38-
<label for="t-shirtColor">T-shirt color:</label>
40+
<div>
41+
<label for="color">T-shirt color:</label>
3942
<div class="control">
4043
<label class="t-color">
4144
<input type="radio" name="color" value="Black" required/>
@@ -46,11 +49,12 @@ <h1>Product Pick</h1>
4649
Red
4750
</label>
4851
<label class="t-color" disabled>
49-
<input type="radio" name="color" color="Blue" required/>
52+
<input type="radio" name="color" value="Blue" required/>
5053
Blue
5154
</label>
55+
</div>
5256
</div>
53-
57+
<div>
5458
<label for="sizes">T-shirt size:</label>
5559
<select name="size" id="sizes" required>
5660
<option value="xs">XS</option>
@@ -60,9 +64,10 @@ <h1>Product Pick</h1>
6064
<option value="XL">XL</option>
6165
<option vallue="XXL">XXL</optio>
6266
</select>
63-
64-
<br />
67+
</div>
68+
<div>
6569
<button type="submit" id="submit">Submit</button>
70+
</div>
6671
</form>
6772
</main>
6873
<footer>

0 commit comments

Comments
 (0)