Learn HTML by Building a Cat Photo App - Step 56

Tell us what’s happening:
Each time I put the label in it says it shouldn’t be to the right. . . but when I take it out it says to put it to the right. I am so confused.

<input id=“loving” type=“checkbox”
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">
            <legend>Is your cat an indoor or outdoor cat?</legend>
            <label><input id="indoor" type="radio" name="indoor-outdoor" value="indoor"> Indoor</label>
            <label><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> Outdoor</label>
            <legend>What's your cat's personality?</legend>

<!-- User Editable Region -->

<label><input id="loving" type="checkbox" </label>

<!-- 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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 56

Link to the challenge:

Welcome to our community!

The order of html elements is different. This is what you get in this challenge:

<input id="loving" type="checkbox">

The ‘label’ element with nested text within it goes right of the input element:
In order to make it looks good, add a blank space between the ‘input’ element and the opening ‘label’ tag.

Don’t change the existing code.
Restart step.
After the ‘input’ element add the following:

<label for="smth">Word</label> ....this is just guidance

Add a blank space before the opening <label> tag (between the ‘input’ element and the opening ‘label’ tag).

Uggghh. I don’t get what is wrong with this!

  • The ‘input’ element is self-closing. It doesn’t have the closing </input> tag.
  • the ‘input’ tag is not closed with the right angle tag > after id attribute
  • don’t make spaces around the word “Loving”
  • between the input element and the opening label tag make a blanks space:
<input> <label>... 

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