Learn HTML by Building a Cat Photo App - Step 26

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

Struggling with line 22 I believe. With the

Things cats hate:

It keeps telling me “ There should be an h3 element right above the second section element’s closing tag. Make sure it has an opening and closing tag.”

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <section>
        <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>
      </section>
      <section>
        <h2>Cat Lists</h2>
        <h3>Things cats love:</h3>
        <ul>
          <li>cat nip</li>
          <li>laser pointers</li>
          <li>lasagna</li>

<!-- User Editable Region -->

       <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>Things cats hate:</h3>
      </section>

<!-- User Editable Region -->

    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15

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

Link to the challenge:

This is not the required sentence.

What does that mean?


The sentence you should put between the h3 tags are highlighted in the given screenshot.

Yeah ok i changed it but the same thing pops up

Restart step.
Then, if your code doesn’t pass, post it here again.

Ok how do i restart the step?

No that restarts the whole lesson

Yes, that restarts the step. You will get the code shown in the screenshot, by default. After the closing </figure> tag add the following code line:

<h3>Text: </h3>

The text is "Top 3 things cats hate: ".

No it restarts the entire thing so i go back to step 0.

Can you just send a photo of what is should look like?

No it doesn’t send you to step 0. It restarts the current lesson you are on. Post your code so we can see.

We dont give out solutions to the challenge

Ok I just reset and did it again it worked

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