Learn HTML by Building a Cat Photo App - Step 16

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

Your code so far

<html>
  <body>

<!-- User Editable Region -->

    <main>
      <h1>CatPhotoApp</h1>

      <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>
<div><h2>Cat Photo</h2><!-- TODO: Add link to cat photos --><p>see more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>in our gallary.</p><a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curricum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
    </main>

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

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

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

Link to the challenge:

Hello guys, I’ve been stuck here for almost two days now, anyone help kindly. Thank you

Please do not wait so long to ask for help.

FreeCodeCamp will introduce you to many things but it does not always explain them.
Using a search engine to find more information on things that are introduced,
and asking for help when you cant find a solution are great skills during learning.

I do not know what it is you need help with.
Explaining a problem or framing a question is not always easy, but will help others provide better help.

I can only assume your having trouble understanding what ‘nesting’ is and/or understanding what the ‘section’ tag does.

When asked to ‘nest’ or ‘embed’ you are putting one tag inside another.

Here are two examples:

<body>
    <p>An example of a p-tag nested within a body-tag</p>
</body>
<h1><a>A example header with a nested anchor tag</a></h1>

I encourage you to use a search engine to find out what a ‘section’ tag is used for,
there are many tag, attribute, value lists that will give you definitions, use cases and examples.

Finding a reference you can refer to when you are introduced to a new tag, or forget one can make learning much easier and less stressful

Hope this helps a little :smiley:

To be honest I really don’t understand what’s happening here, would just be kind enough and help me please.

Hello!
The instructions are:
Take your h2, comment, p, and anchor (a) elements and nest them in a section element.
This means to put a section element prior to the ‘h2’ element and include all the other elements moving down to the last ‘a’ element prior to closing your section element. I hope this helps. Anytime it states to take numerous elements or items, it wants those included within the one element.
For example: nexting and h1 and h2, along with an p within a body element would look like this:
< body >
< h1 > < /h1 >
< h1 > < /h1 >
< p >< /p >
< /body >

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