Learn HTML by Building a Cat Photo App - Step 61

Hello,

I am attempting solve this step but I am unsure where to place “checked’ attribute in my code. Inside of the first radio button, it is placed in the input, however the hint I am receiving is " The first radio button is missing the checked attribute.”

Here is my code below:

Code so far**

 <fieldset>
            <legend>Is your cat an indoor or outdoor cat?</legend>
            <label><input "checked" id="indoor" type="radio"  name="indoor-outdoor" value="indoor"> Indoor</label>
            <label><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> Outdoor</label>
          </fieldset>
          <fieldset>
            <legend>What's your cat's personality?</legend>
            <input id="loving" "checked"  type="checkbox" name="personality" value="loving"> <label for="loving">Loving</label>
            <input id="lazy" type="checkbox" name="personality" value="lazy"> <label for="lazy">Lazy</label>
            <input id="energetic" type="checkbox" name="personality" value="energetic"> <label for="energetic"> Energetic</label>
          </fieldset>

checked is the name of the attribute so it does not need any quotes around it

That worked. Thank you!

1 Like