Radio button and label underneath eachother

Tell us what’s happening:
Describe your issue in detail here.

I am unable to pass step 46, as it says: “Your new radio button and associated label should be below the first one. You have them in the wrong order.”

I am unable to understand and locate information on how to do this. All I can find is information on the older HTML training where having the code underneath seems to work, however it will not in the new version. I did find some other code while browsing google, however they were things that I have not learned in the training yet and I therefor did not wish to try it. If someone could point me in the correct direction it would be much appreciated.

  **Your code so far**

<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <section>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</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>
    </section>
    <section>
      <h2>Cat Lists</h2>
      <h3>Things cats love:</h3>
      <ul>
        <li>cat nip</li>
        <li>laser pointers</li>
        <li>lasagna</li>
      </ul>
      <figure>
        <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>  
      </figure>
      <h3>Top 3 things cats hate:</h3>
      <ol>
        <li>flea treatment</li>
        <li>thunder</li>
        <li>other cats</li>
      </ol>
      <figure>
        <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>  
      </figure>
    </section>
    <section>
      <h2>Cat Form</h2>
      <form action="https://freecatphotoapp.com/submit-cat-photo">
      <label><input id="indoor" type="radio"> Indoor</label>
        <label><input id="outdoor" type="radio"> outdoor </label>
        <input type="text" name="catphotourl" placeholder="cat photo URL" required>
        <button type="submit">Submit</button>
      </form>
    </section>
  </main>
</body>
</html>
  **Your browser information:**

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

Challenge: Step 46

Link to the challenge:

Likely the issue is in the capitalization. If you notice you have “indoor” written between the labels as “Indoor” with a capital first letter. However, in the “outdoor” you have it written as “outdoor” with all lowercase.

If fixing this capitalization issue does not fix your problem then I suggest ensuring they are both on the same indentation level as well. That means the both start at the same point on their respective lines. Also, if the capitalization does not work try eliminating any extra whitespace (empty spaces) after the word “outdoor” between labels.

Thank you for replying :slight_smile:

It seems as it might have shifted a little after all my attempts, so I took a look and made sure it was all in order. However it still does not let me through.

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

Screenshot 2022-05-22 210032

Anything else that you can think of?

Between to closing bracket (>) of the input element and the closing label element the words need a capital first letter like so:

Indoor
Outdoor

Edit: I apologize my initial post was not very clear on which is expected.

Thanks, that solved it!

May I ask why it needs to be a capital letter there? I think I may have missed that during the training :open_mouth:

The capital letter is just how FCC wanted you to write the initial Indoor input element for stylistic and readability choices. Its tester checks to ensure it is exactly how it wants it to be. Essentially whether you choose to use a capital or lowercase letter there in your personal projects is your choice.