Learn HTML by Building a Cat Photo App - Step 6

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.

The h1 element, h2 element and the comment are indented two spaces more than the main element in the code below. 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.


<!-- User Editable Region -->

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

<!-- 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 OPR/

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

Link to the challenge:

Why did you move the comment below the p element?

You should not make changes that the instructions did not ask you to make. Even the smallest unexpected change can cause the tests to fail. If you move the comment back above the p element where it was originally then you will pass.

1 Like

Thanks, Brother I will solve this, In-shaa-allah. Thanks for your response :slightly_smiling_face:

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