Value attribute

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 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

i don’t get what i’m doing wrong, seems like i haven’t attached value attribute to the energetic input but i have! help please.

Use the input label text, in lowercase, as the value for the attribute.

1 Like