Checkbox problem

Tell us what’s happening:
I Can’t understand where is the problem within the codes of checkbox?

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">
   <input id="indoor" value="indoor" type="radio" name="indoor-outdoor">Indoor 
   <label for="outdoor"> 
    <input id="outdoor" value="outdoor" type="radio" name="indoor-outdoor">Outdoor 
   <label for="loving">
    <input value="loving" type="checkbox" name="personality"> loving
   <label for="loving">
    <input value="lazy" type="checkbox" name="personality"> lazy
   <label for="lazy">
    <input value="energetic" type="checkbox" name="personality"> energetic
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36 OPR/65.0.3467.48.

Challenge: Use the value attribute with Radio Buttons and Checkboxes

Link to the challenge:

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.


1 Like

it may be that you have added things that were not required, and the tests are failings for the unexpected things.
try resetting and adding only the value attribute

1 Like