Learn HTML by Building a Cat Photo App - Step 6

Guys, someone help me? I´m new in the programming, I have 16 years old and I´m brazilian, I try do this, but I can´t understand what´s worng.

This is what the exercice want:

" 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:

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

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

This is the message that appears:

“Hint: Your h2 element should be below the main element’s opening tag and its opening tag should start 6 spaces over from the start of the line.”

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
    <main>
  <h2>Cat Photos</h2>
  <!-- TODO: Add link to cat photos -->
  <p>Click here to view more cat photos.</p>
  </main>
    
</body>
</html>

It is asking you to add six spaces between the starting point and element.

This is your code with zero spaces:

<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more cat photos.</p>

This is how it should be:

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more cat photos.</p>

I have typed six spaces from the starting of the element.

Imagine “-” as spaces:
------<element>

Hope this helps.

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