I do not know how to add the 'value' of "loving, lazy and energetic to the already existing checkboxes

<h2>CatPhotoApp</h2>

<main>

  <p>Click here to view more <a href="#">cat photos</a>.</p>

  <a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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://www.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>

  <label for="indoor">

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

    </label>

    <label for="outdoor">

      <input id="outdoor" value="outdoor"

      type="radio" name="outdoor-indoor">Outdoor

  </form>

</main>

Hello there.

Do you have a question?

If so, please edit your post to include it.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

Hi @carloquesada68 !

It would help us out if you provided a link to the challenge you are working on so we know how to help.

But as to your question of how to add a value attribute to the inputs, I would suggest carefully looking at the example code they gave you.

In the example code, they have value attributes inside the inputs.
This is an example of a value attribute

value=""

Your task is to add that value attribute to your inputs with the correct values provided from the lesson.

Hope that helps!

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