Learn HTML by Building a Cat Photo App - Step 2

Tell us what’s happening:
Describe your issue in detail here.
It is telling me that my h1 element should have an opening tag. Opening tags have this syntax elementName

Your code so far

<html>
  <body>

<!-- User Editable Region -->

    </h1>CatPhotoApp</h2>
    

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

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

Link to the challenge:

Hi there

When it says element, it means it does have an opening tag and a closing tag of the same tag.

Element = Opening Tag + Closing Tag

Opening tag of an h1 element will be like this:

<h1>

Closing tag of an h1 element will be like this:

</h1>

h1 element:

<h1></h1>

Now the above is an empty h1 element, you can put the text between the opening tag and the closing tag like below.

<h1>Put your text over here</h1>

Yours doesn’t have opening tag, you’re putting your text between a closing tag of h1 and a closing tag of h2. Wherein it should be as shown above.

1 Like

How do I put in the angle brackets?

I am not sure if I got your question.

You would simply type your text between the opening and the closing tag.

<h1>text</h1>

As for your example, it should be like this:

<h1>CatPhotoApp</h1>