My first post, please help me

Tell us what’s happening:

Hi there, my first post here, im stuck as the error I receive is " One of your radio buttons should have the

value

attribute of

indoor

. One of your radio buttons should have the

value

attribute of

outdoor"

And I have added that part, could you please help me?

**Your code so far**
      
```html

<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="/submit-cat-photo">
  <label for="indoor"> <input type="radio" name="indoor-outdoor" value="indoor" > indoor</label>
  <label for="outdoor"> <input type="radio" name="indoor-outdoor" value="outdoor" > outdoor </label> <br>

  <label> <input type="checkbox" name="personality" value="loving"> Loving </label> 
  <label> <input  type="checkbox"  name="personality" value="lazy">  Lazy   </label>
  <label> <input  type="checkbox" name="personality" value="energetic"> 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/80.0.3987.149 Safari/537.36.

Challenge: Use the value attribute with Radio Buttons and Checkboxes

Link to the challenge:

Sorry you had trouble getting this lesson to validate properly. This is a weird one and unfortunately the error messages you received:

One of your radio buttons should have the value attribute of indoor .
One of your radio buttons should have the value attribute of outdoor .

don’t accurately reflect the error. Indeed, your value attributes are correct.

When I copied your code into my exercise and played with it, the actual issue is with the “indoor” and “outdoor” labels themselves. Directly before the closing </label> tags, your label is lower-case. You’ll need to capitalize the label and the tests should pass.

Some advice for further lessons: because of the way FCC runs tests on the exercises, don’t modify any of the pre-written code except specifically what you’re asked to. My guess is they run a diff check, so any extraneous changes will cause your tests to fail, even if it’s not actually wrong.

Hope this helps!

Thanks for the amazingly fast response.

That solved the problem!

Roberto.

1 Like