Learn HTML by Building a Cat Photo App - Step 5 - i9n7QF-ToORXNymZ6rV8d

Tell us what’s happening:
Describe your issue in detail here.
where on earth do i put the ending main element? ive placed it just about everywhere and even created a new line. cant seem to figure it out

  **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>
</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 5

Link to the challenge:

Part of your problem is that your opening main tag is in the wrong place. Your opening main tag needs to come after the entire h1 element, not only the opening h1 tag.

1 Like

Element as a whole thing looks like this:

<element>........</element>

this

<element>

is just opening tag

thank you for the help. i never figured the opening main was in the wrong place. the hints were hinting toward the closing main.

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