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 -->

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

<!-- User Editable Region -->

  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 5

Link to the challenge:

Add opening main tag above h1 element and add a closing main tag below p element. You missed the closing tag of main element.

mod edit: removed

You used your closing tags wrongly.
Remember, whenever you open a tag you must close it, for example:
“main” should be closed with “/main”
“h1” should also be closed with “/h1”

Now, the error in your above code is that you failed to close the tags “main” and “h1”, hence the html output doesn’t show as you planned.
The “main” should engulf the elements which are it’s children(the h1, the h2, the p);

Mdd edit: removed

1 Like

@Khamado78 @blessensam

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like

My sincere apologies, I did not know anything about giving out spoilers, however, I deter from such behavior and will advise others against it. Good day

Thank you for helping me, i finished the coding project i appreciate the help. Atm I’m new to code and learning alot

I understand the concern and I appreciate their willingness to help but i wanted to give a shot of my own. i came back to the problem the next day and managed to solve the project my self. I’m new to the coding world, slowly learning new things after work, I’m grateful to find a welcoming community and helpful one as well.

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