Learn HTML by Building a Cat Photo App - Step 14

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

   **Your code so far**
html>
 <body>
   <h1>CatPhotoApp</h1>
   <main>
     <h2>Cat Photos</h2>
     <!-- TODO: Add link to cat photos -->
     <p>Click here to view more cat photos</p>
<a href="https://freecatphotoapp.com">
     <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">cat photos</a>
  </main>
 </body>
</html>
   **Your browser information:**

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

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

Link to the challenge:

Hello there.

Please 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 information you give us, the more likely we are to be able to help.

Here at 14 th level i donno why its showing

Your anchor (a) element should have an opening tag. Opening tags have this syntax: <elementName>.

from last 12 hours i’m trying this but could’nt find the mistake as still it stucks

html>
  <body>
    <h1>CatPhotoApp</h1>
    <main>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more cat photos</p>
 <a href="https://freecatphotoapp.com">
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">cat photos</a>
   </main>
  </body>
</html>

It really helps if you can be more specific about what you are stuck on and why.


You should not change the p element’s contents at all

Your anchor element here should only contain the img, no additional text.

In simple layman’s language i did not understand the whole 14 level part

Did you see all this stuff I said?

yes

can you please provide me this whole correct solution for 14 level

No. We are not allowed to write the answer for other users - that is against the rules.

ok

so, where I am wrong can you tell me as still I did not understand

Well, you have two errors.

  1. You changed the contents of the p element. You must not change anything about the p element.

  2. You added the text ‘cat photos’ after the img element. You must not add any extra text next to the img element.

I’ve edited your post 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 (').

You removed the anchor element from around the img element. You should put that back.

html>
  <body>
    <h1>CatPhotoApp</h1>
    <main>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a href="https://freecatphotoapp.com">
      cat photos</a></p>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"alt="A cute orange cat lying on its back."</a>
   </main>
  </body>
</html>

Now?

I’ve edited your post 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 (').

You broke the img element. The img element should be unchanged. You need to put an opening anchor tag before the img element and a closing anchor tag after the img element.

You had this before, but with the extra text cat photos added in.

html>
  <body>
    <h1>CatPhotoApp</h1>
    <main>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a href="https://freecatphotoapp.com">
      cat photos</a></p>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"alt="A cute orange cat lying on its back."></a>
   </main>
  </body>
</html>

Is It Good Now?

I’ve edited your post 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 (').

Please format your code!


You still do not have an opening anchor tag before the img element. You should have two anchor elements, so you need two opening tags and two closing tags.

Thats what I am not able to get
like how to do that and what to write

We aren’t allowed to write the answers for other users.


How many times to you see <a .... > in your code? That is an opening anchor tag. Since you need two anchor elements, you must have two opening anchor tags.