<label for="indoor"><input id="indoor" type="radio" name="indoor-outdoor"> Indoor</label>
<label for="outdoor"><input id="outdoor" type="radio" name="indoor-outdoor"> Outdoor</label><br>
<label for="loving"><input id="loving" type="checkbox" name="personality"> Loving</lable>
<label for="caring"><input id="caring" type="checkbox" name="personality"> Caring</label>
<label for="sweet"><input id="sweet" type="checkbox" name="personality"> Sweet</label><br>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
Errors
-
Each of your three checkbox elements should be nested in its own
label
element. -
Make sure each of your
label
elements has a closing tag.