Learn HTML by Building a Cat Photo App - Step 5

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

  **Your code so far**
<html>
<body>
  <h1> 
    <main>
       CatPhotoApp
       </h1>
  <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/105.0.0.0 Safari/537.36

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

Link to the challenge:

Hello there.

Please Tell us what’s happening in your own words.

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.


Your opening main tag must come after your closing h1 tag.

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

cant help it do all the tags agin and again but i cant help it please HELP

<html>
<body>
  <h1> 
    <main>
CatPhotoApp   </h1>
  <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/105.0.0.0 Safari/537.36

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

Link to the challenge:

Hey Simran!

Nesting in HTML happens when you have one or more elements as the children of other HTML element. For example:

<div>
    <button></button>
</div>

Here, the button is nested inside of the div. When one element is a child of another, Its opening and closing tag, both need to be inside of the parent element. If you start an element inside of one element and close it outside, that is not valid. for example:

<!-- this is valid. -->
<div>
    <p></p>
</div>

<!-- this is invalid -->
<div>
    <p>
</div>
    </p>

The latter is what you have in your code, which is why its not working.

Hope this helps! :smile: