Learn HTML by Building a Cat Photo App - Step 2

Tell us what’s happening:
Describe your issue in detail here.

I’m trying create for building this element and is kept saying sorry code doesn’t pass. What i’m doing doing wrong?

<html>
  <body>

<!-- User Editable Region -->

    <h1>elementName </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/109.0.0.0 Safari/537.36

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

Link to the challenge:

You should already have an h1 element which looks like this:

<h1>CatPhotoApp</h1>

The challenge requires you to add an h2 element directly below, with the text ‘Cat Photos’.

So, using the same syntax, create another element just like the one above, but with h2 tags and the text ‘Cat Photos’ instead.

Since you have inadvertently modified the pre-existing code, it may be easiest to Reset the Lesson and try again.

<h2>CatPhotos</h2<

i was excatly like this but it won’t pass me

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

<h2>CatPhotos</h2<

No, that code wouldn’t pass because it has a syntax error in the closing tag and the text is also not exactly what is required.

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