I can not complete the 5th step of HTML

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/101.0.4951.67 Safari/537.36

Challenge: Step 5

Link to the challenge:

1 Like

Hello,
Welcome to the forums :wave:


Your opening tag should be after the closing </h1> element.

I’ve been trying to do the exact same thing for almost an hour now, still doesnt work.

He’s saying the above code is wrong… your <main> tag is inside the h1 element… it should be after the h1 element… as a reference, the closing </main> tag you did corectly, its after the p element.

Ohmygod thankyou so much, so that was the problem

2 Likes

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