Problem with Step 19 of Responsive Web Design Certification

Hello freeCodeCamp Support,

I’m experiencing a technical issue with Step 19 of the HTML lessons that’s preventing me from progressing, even though my code appears to be correct.

The Problem: The test keeps failing with multiple errors related to the <section> element, even after verifying my code structure and syntax are correct.

Error Messages I’m Receiving:

  1. Your section element should have an opening tag. Opening tags have this syntax: <elementName>.

  2. You should only add one opening section tag. Please remove any extras.

  3. Your section element should have a closing tag. Closing tags have a / just after the < character.

  4. You should only add one closing section tag. Please remove any extras.

  5. Both section elements should be between the opening and closing tags of the main element.

My Current Code:

html

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <section>
        <h2>Cat Photos</h2>
        <p>Everyone loves <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg">cute cats</a> online!</p>
        <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>
    </main>
  </body>
</html>

What I’ve Already Tried:

  • Verified I’m using straight quotes (not curly quotes)

  • Confirmed all opening tags have matching closing tags

  • Checked that the section element is properly nested inside the main element

  • Refreshed the page and re-entered the code

  • Checked on the HTML & CSS forum for any answers and found people with some solutions that did not work

  • Even gave Cluade AI and ChatGPT the code, and they both said it was fine

The code structure appears correct, but the validator continues to reject it. Could this be a bug with the test analyzer?

Link to the challenge:

Build a Cat Photo App: Step 19 | freeCodeCamp.org

Thank you for your help!

Hi

The instructions say to add a second section element. I can only see one section element in your code.

You need to add the second section below the first section.

I suggest you reset the step and try again

1 Like

The LLMs don’t actually ‘know’ if your code is correct or not.

1 Like