Radio button elements should be added within the form tag

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="/submit-cat-photo">
  <label><input type="radio" name="indoor-outdoor">Indoor</label>
  <label><input type="radio" name="indoor-outdoor">Outdoor</label><br>
  <label><input type="checkbox" name="personality">Loving</label>
  <label><input type="checkbox" name="personality">Lazy</label>
  <label><input 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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36.

Challenge: Use the value attribute with Radio Buttons and Checkboxes

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/use-the-value-attribute-with-radio-buttons-and-checkboxes

1 Like

what it tells you to do is give them a value. Where is your value attribute?

plz elaborate it i cant understand

it’s in the lesson read down
“’’ Give each of the radio and checkbox inputs the value attribute. Use the input label text, in lowercase, as the value for the attribute.”

plz elaborate it I cant understand it

why can’t you understand it? what part are you failing to understand excatly?

ooohhhhh yes thanks …

 the problem was more than obvious, I needed to move  </form>  after the second radio bottom and before  </main>.


that is it hahaha

wow, also you make the code shorter than on video and it still passes the check, I like a new thing I notice in your open tag  <br>  it was something new for me.```