Learn HTML by Building a Cat Photo App - Step 19

Tell us what’s happening:

I DONT KNOW WHAT AM DOING WRONG , IT KEEPS ASKING ME TO PUT SYNTAX BUT I DONT KNOW WHERE ITS MISSING

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>

<!-- User Editable Region -->

    <section>   
        </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>   
       
       

<!-- User Editable Region -->

    </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/129.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 19

You should add a new section below the existing section:

<section>
      <!-- existing section element  -->
</section>
<section>
     <!--  new section -->
</section>

Hi, @osmaan19991 Welcome to Freecodecamp forum!

Just remember: HTML works in a hierarchical way. Most of the tags (not all!), like the “section” tag, should open (<section>) and close (</section>).

And it is different when they are outside other tags, or inside other tags like here in the code you showed - the “a” tag is inside the “p”:

<p>Everyone loves <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg">cute cats</a> online!</p>

So, think about the exercise and try to find the right place of the tag you have to add, as well as opening it and closing it correctly.

This is something that you will have to care about when working with HTML. In the future you will learn how to use applications that will check that for you. But for now, keep an eye on the open and close tags - when applicable.

Happy coding!!