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><main>
  <h1>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/104.0.0.0 Safari/537.36

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

Link to the challenge:

1 Like

Hi @CaptainAmericA and welcome!!

You just need to read more carefully the instructions and code, it is really important. You will solve problemas faster that way. Less bugs, less time solving a problem as well.

Identify the main section of this page by adding a <main> opening tag AFTER ** :wink:** the h1 element, and a </main> closing tag after the p element.

The most important part it is understand the question, it seems silly but it solves a lot of problems studying it. I even check the elements syntax some times on w3schools or mdn web docs, for example.

Remember also to read always the error message and hints, this one was clear, for example :grin::

Hint

Your main element’s opening tag should be below the h1 element. You have them in the wrong order.

Try also always to indent your code too. It is much easier to read and to debugg it.

Well done and happy coding!!

Thanks, it worked :slight_smile: