Learn HTML by Building a Cat Photo App - Step 6

Tell us what’s happening:
Describe your issue in detail here.
Add two more spaces in front of the h2 , comment, and p elements so your HTML is more readable.

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

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

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

Link to the challenge:

ok…you have to add two spaces like there should be total of 6 spaces from start in h2 tag, comment and p tag
like
`

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

This challenge is getting you to have a more readable structure in your code.
Your code looks something like this at the moment. All the elements are in-line with each other.

<main>
<h2>H2 Text</h2>
<!-- comment -->
<p>P text</p>
</main>

By adding indentation, you can make the code have better structure.

<main>
  <h2>H2 Text</h2>
  <!-- comment -->
  <p>P text</p>
</main>

Because there isn’t much code in the document, the benefit isn’t very obvious, but it’ll become more apparent as your documents have more code.
Hope this helped! :+1:

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