Can't sovle this

Tell us what’s happening:

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
<ul>
  <li>cat nip</li>
  <li>laser pointers</li>
  <li>lasagna</li>
</ul>
<p>Top 3 things cats hate
<ol>
  <li>flea treatment</li>
  <li>thunder</li>
  <li>other cats</li>
</ol>
<form action="https://freecatphotoapp.com/submit-cat-photo">
  <label for="indoor"><input id="indoor" type="name="indoor-outdoor" value="indoor checked> Indoor</label>
  <label for="outdoor"><input id="outdoor" type="radio" name="indoor-outdoor"value="outdoor"> Outdoor</label><br>
  <label for="loving"><input id="loving" type="checkbox" name="personality""loving"checked>
  <label for="lazy"><input id="lazy" type="checkbox" name="personality" value="lazy"> Lazy</label>
  <label for="energetic"><inpun id="energetic" type="checkbox" name="personality" value="energetic"> Energetic</label><br>
  <input type="text" placehoteer="cat photo URL" required>
  <button type="submit">Submit</button>
</form>
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 5.1.1; SM-T285) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Safari/537.36.

Challenge: Check Radio Buttons and Checkboxes by Default

Link to the challenge:

You have a lot of little mistakes here.

This line:

  <label for="indoor"><input id="indoor" type="name="indoor-outdoor" value="indoor checked> Indoor</label>

That does type="name="indoor-outdoor" mean. Be sure to leave spaces between you attributes for readability, but there is a big issue with this attribute. You can just see that the coloring is different in your post to tell that the HTML is off.

You have similar problems here:

  <label for="loving"><input id="loving" type="checkbox" name="personality""loving"checked>

Also, one of your labels is missing a close.

Also,:

  <label for="energetic"><inpun id="energetic" type="checkbox" name="personality" value="energetic"> Energetic</label><br>

There is no element “inpun”.

I think that was all of them - when I fixed the problems, the code passed.

1 Like