Skip to content

Commit 38a0689

Browse files
committed
updated html with div classes
1 parent 5f4166a commit 38a0689

1 file changed

Lines changed: 20 additions & 14 deletions

File tree

‎Form-Controls/index.html‎

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,31 @@ <h1>Product Pick</h1>
1919
<!--
2020
try writing out the requirements first as comments
2121
this will also help you fill in your PR message later-->
22-
<label for="name">Customer Name:</label>
23-
<input type="text" id="name" minlength="2" pattern=".*\S.*\S.*" required>
22+
<div class="field-row">
23+
<label for="name">Customer Name:</label>
24+
<input type="text" id="name" minlength="2" pattern=".*\S.*\S.*" required>
2425

25-
<label for="email">Customer Email:</label>
26-
<input type="email" id="email" name="email" required>
26+
<label for="email">Customer Email:</label>
27+
<input type="email" id="email" name="email" required>
28+
</div>
2729

28-
<fieldset>
30+
<fieldset>
2931
<legend>T-shirt color:</legend>
3032

31-
<input type="radio" id="blue" name="color" value="blue" required>
32-
<label for="blue">Blue</label>
33+
<div class="color-options">
34+
<input type="radio" id="blue" name="color" value="blue" required>
35+
<label for="blue">Blue</label>
3336

34-
<input type="radio" id="black" name="color" value="black" required>
35-
<label for="black">Black</label>
37+
<input type="radio" id="black" name="color" value="black" required>
38+
<label for="black">Black</label>
3639

37-
<input type="radio" id="grey" name="color" value="grey" required>
38-
<label for="grey">Grey</label>
40+
<input type="radio" id="grey" name="color" value="grey" required>
41+
<label for="grey">Grey</label>
42+
</div>
3943

44+
<div class="size-row">
4045
<label for="size">Size</label>
41-
<select id="size" name="size" required>
46+
<select id="size" name="size" required>
4247

4348
<option value="">--select a size--</option>
4449
<option value="XS">XS</option>
@@ -48,12 +53,13 @@ <h1>Product Pick</h1>
4853
<option value="XL">XL</option>
4954
<option value="XXL">XXL</option>
5055
</select>
56+
</div>
5157

5258
<input type="submit" value="Submit">
5359

54-
</fieldset>
60+
</fieldset>
5561

56-
</form>
62+
</form>
5763
</main>
5864
<footer>
5965
<!-- change to your name-->

0 commit comments

Comments
 (0)