Basic HTML Creating a set of checkboxes

Tell us what’s happening:
I did everything correct except for the name of the checkboxes. What do the names have to be?

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="https://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>
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
  <label for="attribute of personality"><input id="attribute" type="checkbox" name= "attribute of personality"> attribute</label>
  <label for="attribute of personality"><input id="attribute" type="checkbox" name= "attribute of personality"> attribute</label>
  <label for="attribute of personality"><input id="attribute" type="checkbox" name= "attribute of personality"> attribute</label>
</form>
</main>

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.183 Safari/537.36.

Challenge: Create a Set of Checkboxes

Link to the challenge:

@Twanman1412 Read the instructions one more time. You have it right. The instructions say, " All three should share the name attribute of personality ." You have three things. It should only be one. Happy coding! :smile:

Hi There,
You’ve done the things right except the string in for attribute inside label element, and id attribute inside the input element. Remember the concept if we should write the same string in for attribute and id attribute of input element inside it’s own label tag. So if we want to make a button nested with label tag, we can go like this

Button

Happy coding!

@Ishaq101 Welcome to the FreeCodeCamp Forums! :smile: