Learn HTML by Building a Cat Photo App - Step 5

Tell us what’s happening:

Hello there, need help I’m stuck, need someone to guide me on how to place the code about the in order.Your help will be appreciated.

Your code so far

<html>
  <body>

<!-- User Editable Region -->

  
    <h1>CatPhotoApp</h1>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>See more cat photos in our gallery. </p>
<main>
  <h1>CatPhotoApp</h1>
  <p>See more  cat  photos in our gallery .</p>
  </main>
      

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 5

Read the error that you get when you dont pass the test. It will help you figure out what the problem is.
Tip1: make sure to not have extra spaces inside your p elements.
Tip2: all of your text elements should be inside the main element

1 Like

1 Like

Photos/screenshots of an error can be helpful, but it also helps to provide the complete code. Posting the code helps us help you better!

When you enter a code, 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 (').

1 Like

Welcome to the forum @B12345

Try placing the main opening tag below the body opening tag.

Also, it looks like you copied and pasted some of a heading and paragraph element.

image

Happy coding

hello there. did you end up getting it? if so, can you please help me

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

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