Learn HTML by Building a Cat Photo App - Step 48

Tell us what’s happening:

where do i add the name attribute?
i have tried different positions but its not working

Your code so far

        <h2>Cat Photos</h2>
        <!-- TODO: Add link to cat photos -->
        <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
        <a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
        <h2>Cat Lists</h2>
        <h3>Things cats love:</h3>
          <li>cat nip</li>
          <li>laser pointers</li>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="A slice of lasagna on a plate.">
          <figcaption>Cats <em>love</em> lasagna.</figcaption>  
        <h3>Top 3 things cats hate:</h3>
          <li>flea treatment</li>
          <li>other cats</li>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg" alt="Five cats looking around a field.">
          <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
        <h2>Cat Form</h2>
        <form action="https://freecatphotoapp.com/submit-cat-photo">

<!-- User Editable Region -->

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

<!-- User Editable Region -->

          <input type="text" name="catphotourl" placeholder="cat photo URL" required>
          <button type="submit">Submit</button>

Your browser information:

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 48

Keep this format and try adding the name attribute within the <input> once you get this first one down, the format for the second will look very similar.

Welcome to the forum @ellen2

The instructions are asking you to write code for a name attribute.
You seem to have added a name element instead.

Some of the code needs to be fixed up first.

  1. add an opening label tag before the outdoor radio button
  2. add a single space before the text Indoor
  3. make the first letter of the text of outdoor a capital letter
  4. finally, add the name attribute to both radio buttons
    Take a look at the type attribute to get an idea about the code structure

Happy coding

1 Like