Not sure how to close off this code to pass step 5

Tell us what’s happening:
the task is to place a after a paragraph element but the code isn’t coming back as correct so I’m not sure where I’m going wrong.
i have also tried after the

as well.

  **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/102.0.0.0 Safari/537.36

Challenge: Step 5

Link to the challenge:

Your beginning <main> tag is inside the <h1>
. Move it out of there.

ok i got it working by placing one line lower, the hint was a little misleading, telling me to move the closing tag.

@StudiousArgyle

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Yes it is. But I’m glad you fixed it!

1 Like

Thanks @jwilkins.oboe I’ll keep that in mind for next time. <3

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