How to use "value"?

Tell us what’s happening:
where is the mistake @.@?

Your code so far

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

<a href="#"><img src="" alt="A cute orange cat lying on its back."></a>

<p>Things cats love:</p>
  <li>cat nip</li>
  <li>laser pointers</li>
<p>Top 3 things cats hate:</p>
  <li>flea treatment</li>
  <li>other cats</li>
<form action="/submit-cat-photo">
  <label><input type="radio" name="indoor-outdoor"value="Indoor"> Indoor</label>
  <label><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>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36.

Challenge: Use the value attribute with Radio Buttons and Checkboxes

Link to the challenge:

You aren’t matching the capitalization from the challenge. The tiniest details matter in coding!


Just taking the first message from the console:

One of your radio buttons should have value attribute of indoor

What you have:

<input type="radio" name="indoor-outdoor"value="Indoor"> 

Almost everything in programming is case-sensitive.

Hope this helps

1 Like

sorry, my English is not good. Maybe I can’t understand everything you said. It’s still WRONG TvT Can you identify the error and fix this line of code?
<<input type=“radio” name="indoor-outdoor"value=“Indoor”>Indoor

<label><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>

The tests are not passing, because of your value properties:

  1. Give a space between the " and the word value
  2. All of the words assigned (=) to value need to be in lowercase. So, instead of "Outdoor", put "outdoor".

Hope this helps

thanks for your help