Learn HTML by Building a Cat Photo App - Step 5

I am doing what is instructed, my code seems okay when I verified it via another website…and yet, freecodecamp tells me it is wrong.

My code:


Cat Photos

**Your code so far**

<!-- User Editable Region -->

    <h2>Cat Photos</h2>

<!-- User Editable Region -->


Your browser information:

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

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

Link to the challenge:

Welcome to our community!

Restart step.

In this step you should wrap the following html elements:

    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>See more cat photos in our gallery.</p>

into a ‘main’ element. The ‘main’ element has both, the opening <main> and the closing </main> tags. As you can see, your editor shows a blank space above the given code (here goes the opening ‘main’ tag) and below the given code (here goes the closing ‘main’ tag).

I understand this, but I have included an opening and closing tag.


Cat Photos

Well, that didn’t go as planned. Here is my code below:

You are wrapping your h1 and h2 inside of the p tag, but thats not how the challenge first started out. Your entire p element needs to come after your h2.

You can also reset the challenge, and see how the challenge lays out everything

Where is the sentence between ‘p’ tags?

<p>See more cat photos in our gallery.</p>

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