Learn HTML by Building a Cat Photo App - Step 6

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

  **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>
  **Your browser information:**

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

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

Link to the challenge:

the h2 element and p element should be in the same line.

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

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
      <h2>Cat Photos</h2> 
    <!-- TODO: Add link to cat photos -->
        <p> <h2>Click here to view more cat photos.</h2>
           </p>
  </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/104.0.0.0 Safari/537.36

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

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

Sorry… for my poor english. I said in the same line but I forgot it’s easily misinterpreted

short word:
add two spaces in front of p element
and that’s it

long word:
in your first code, you add too many spaces in front of p element, so it was indented too far, it should be indented same like h2 element and the comment.
The goal of this challenge to train us to write code that “easy” to read

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