Learn HTML by Building a Cat Photo App - Step 6

Tell us what’s happening:

In the previous step, you put the h1, h2, comment, and p elements inside the main element. This is called nesting. Nested elements should be placed two spaces further to the right of the element they are nested in. This spacing is called indentation and it is used to make HTML easier to read.

Here is an example of nesting and indentation:

Example Code

Most important content of the document

Some more important content...

The h1 element, h2 element and the comm

Your code so far

<html>
  <body>

<!-- User Editable Region -->

    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
    <p>Everyone loves cute cats online!</p>
    </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/146.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 6

You need to add the stated number of spaces before the p element. I suggest you reset and follow the last paragraph of the instructions exactly.

Hello Fellow,

here is the instruction in step 6 ( Use the space bar on your keyboard to add two more spaces in front of the p element so that it is indented properly as well.)
[mod edit - solution removed]

HAPPY CODING with FreeCodeCamp!!

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like

I understand it’s wrong but I just wanted to Justify my point. I’ll improve, Thanks