Learn HTML by Building a Cat Photo App - Step 2

Tell us what’s happening:

Describe your issue in detail here.
Sorry, your code does not pass. Keep trying.

Your element should have an opening tag. Opening tags have this syntax: .h1 <elementName>

<html>
  <body>

<!-- User Editable Region -->

    <h2/>Cat Photos</h1>
    

<!-- 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/121.0.0.0 Safari/537.36 Edg/121.0.0.0

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 2

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!

Hi! Welcome to the realm of coding.

So, let me explain opening and closing tags in HTML to you.

HTML is like a tower made of bricks. Each brick is an element.

You create most elements in html with an opening and closing tag. The opening tag marking where the element starts and the closing tag marking the element’s end. Then you can have all sorts of things between your opening and closing tag.

Opening tags look like this: <h1>.
Closing tags look like this </h1>.
the / indicates that it’s a closing tag. You have two closing tags and no opening tag in your code. Also, your first tag is an h2 while your second is and h1. They should both be h2.

Keep it up. You’ll get the hang of it. :smile:

1 Like

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