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>
    

<!-- User Editable Region -->

  </body>
  <main>CatPhotoApp</main>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.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!

Hello and welcome to the forum.
Next time you create a post, try explaining the issue using your own words.

You have not edited your code. You are supposed to nest your h1, h2, comment, and p element in a main element.
Nesting means putting some content in between opening and closing tag.
Example, in this case your head is wrapping the other elements.:

<head>
<h1>some text</h1>
<p>some text</p>
<img src="link" alt="description">
<p>some text</p>
</head>
<head>

<h1>some text</h1>
<p>some text</p>
<img src="link" alt="description">
<p>some text</p>

</head>

@zuhameer6 you have forget to add <head> opening tag in the example.

@loukaskuriakou94 welcome to FFC forum. Follow the above example and add your required tags in the challenge.

Oh oops! I did add it but it was in the wrong line.

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