Attribute of value

I have written the same attribute with the rest of them
e.g=one was loving the other was energetic and the last was lazy but i have been stuck on the energetic

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="">
  <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>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>

<label for="indoor">
<input id="indoor" value="indoor" type="radio" name="indoor-outdoor">Indoor
<label for="outdoor">
  <input id="outdoor" value="outdoor" type="radio" name="outdoor-indoor">Outdoor
  <label for="loving">
    <input id="loving" value="loving" type="checkbox" name="personality">Loving
    <label for="lazy">
      <input id="lazy" value="lazy" type="checkbox" name="personality">Lazy
<label for="energetic"> 
<input id="enrgetic" value="Energetic" type="checkbox" name="personality">Lazy

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36.

Challenge: Use the value attribute with Radio Buttons and Checkboxes

Link to the challenge:

  • energetic is spelled wrong
  • The value is capitalized. The other values are not. Which is correct?
  • The value is “Energetic”, but the label says “Lazy”.

why have you added other elements when you are asked to add the value attribute to the existing elements?

1 Like

Add the value attribute