I cant understand plz help

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 (Linux; U; Android 10; en-in; Redmi K20 Build/QKQ1.190825.002) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/71.0.3578.141 Mobile Safari/537.36 XiaoMi/MiuiBrowser/12.4.4-g.

Challenge: Use the value attribute with Radio Buttons and Checkboxes

Link to the challenge:

Hi @mscode96 !

You haven’t added any value attributes.

FCC example:

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

What are you not understanding. What you’ve posted here is the unaltered code from the lesson.

The lesson gives an example of what the code looks like when it includes the value attribute.

The lesson then says for you to give each of the radio and checkbox inputs the value attribute and to use the input label text, in lowercase, as the value for the attribute.

What part of this are you not understanding? What have you tried?

What you need here is to add value attribute and set it to specified label text but remember to put it in lower case!!!
for example:
if you have label which is set to INDOOR, value will be( value=“indoor”)
Hopefully it makes sense

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