I dont get it.what am i doing wrong? i have done everythng .but all i get are errors

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:</p>
<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="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</label>
  <label for="lazy"><input id="lazy" type="checkbox" name="personality"> lazy</label>
  <label for="energetic"><input id="energetic" type="checkbox" name="personality"> energetic</label><br>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">submit</button>
</form>
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Safari/537.36.

Challenge: Use the value attribute with Radio Buttons and Checkboxes

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

The more information you give us, the more likely we are to be able to help.

1 Like

yes i have a question.iam stuck with this challenge for hours.still i dont know what iam doing wrong.maybe if you look into my challenge link you will see what iam talkng abt.english not so good

Hello there. In this exercise you need to add a value attribute to each of the radio and checkbox inputs. Set the value to what the label text is. For example: value=indoor
Hope this helps.

Learning how to talk about code is as important as learning how to write about code.

You can always ask your questions in whatever language you are most comfortable with. We’re pretty good at using Google Translate to help answer questions.


In this challenge, you are supposed to add value attributes, but I don’t see where you have added any value attributes. What have you tried to add value attributes?

This is an example element with a value attribute added

<label for="indoor">
  <!--               **right here**  -->
  <input id="indoor" value="indoor" type="radio" name="indoor-outdoor">Indoor
</label>
2 Likes

thnk you for your help sir

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.