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>

<!-- 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> hi </main>

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 5

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

@levifeliz492
Hello!
Welcome to the fCC community. The fCC community is here to serve you, but we need your help so we can serve you better. What is your question, or what are you struggling with? What have you already tried, and what was the results? Can you share the code, or a link ect so we can try to help you? In the future please provide more information. Thank you.

 Now, just looking at your code 

Here is the instructions.
Identify the main section of this page by adding a <main> opening tag before the h1 element, and a </main> closing tag after the p element.

Can you spot the error in your code? The instructions didn’t ask for you to type “hi” so you can delete this, but there is another issue. Try looking at the study resources I attached and you should get your answer.

Hint

Hint: Where should you place the opening tag and where should you place the closing tag?

Some study material

https://www.w3schools.com/tags/tag_main.asp

image
Image from:
https://m5designstudio.com/2013/orlando-web-design/html5-for-beginners-2/

-Happy Coding!

1 Like

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