Learn HTML by Building a Cat Photo App - Step 6

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

Step 6

In the previous step, you nested the h2 element, comment, and p element within the main element. Indenting nested elements two more spaces than their parent element improves readability:

  <li> This `li` element indented </li>
  <li> This `li` element is also indented </li>

Add two more spaces in front of the h2, comment, and p elements so your HTML is more readable.


!: Hints say not to add

  • . it does make sense.
    Please help.

      **Your code so far**
      <h2>  Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
     <p>  Click here to view more cat photos.</p>
      **Your browser information:**

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

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

    Link to the challenge:

  • I, only, added 2 spaces in front of h2, comments and p.

    The two extra spaces should be added in front of the h2 element, which includes its opening tag (<h2> in this case). I would recommend you restart the step to get the original formatting back since formatting is very important for this step. Then add the two spaces in front of the entire element for the h2, the comment, and the p. Be sure not to make any other changes.

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