Skip to content

Commit 49d794d

Browse files
committed
Fix html error select elements
Select element now does not select one of the values by default. Also chose not to remove trailing / in void elements. As prettier does not allow this. Would require installing and configuring an unmaintained extension.
1 parent 9fd0f22 commit 49d794d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Form-Controls/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,17 @@ <h1>Product Pick</h1>
3939
id="shirt-color"
4040
aria-label="select shirt color"
4141
required>
42+
<option value="" disabled selected>Choose a color</option>
4243
<option value="red">red</option>
43-
<option value="red">green</option>
44-
<option value="red">blue</option>
44+
<option value="green">green</option>
45+
<option value="blue">blue</option>
4546
</select>
4647
<select
4748
name="shirt-size"
4849
id="shirt-size"
4950
aria-label="select shirt size"
5051
required>
52+
<option value="" disabled selected>Choose a size</option>
5153
<option value="xs">XS</option>
5254
<option value="s">S</option>
5355
<option value="m">M</option>

0 commit comments

Comments
 (0)