Not able to solve

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 <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
    <img herf="https://freecatphotoapp.com" src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
  </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/102.0.5005.63 Safari/537.36

Challenge: Step 14

Link to the challenge:

Hi @Ashimdevnath

In the previous part, you should have completed this:

 <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">

Changing img src to href is not something we would like to do. Instead, we want to wrap this in a anchor element. Like this:

<a href=""><img></a>

Hope this helps!

I have done this before but is not working any other Solution

How’s your code like if using this method?

You have either omitted the URL or have a typo.
it is displaying this error

Would you mind to copy your code here? so I could take a look of it and see how could I help to solve the error together?

its a typo on the href

<html>
  <body>
    <h1>CatPhotoApp</h1>
    <main>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
     <a herf="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." herf="https://freecatphotoapp.com"></a>
    </main>
  </body>
</html>

It is also not working it is giving error of A element should have a opening element

(post deleted by author)

  <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
 <img href="https://freecatphotoapp.com"src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back." herf="https://freecatphotoapp.com"></a>
</main>
-->

If you click on the image, is this message popped up?

“Normally this link would bring you to another website! It works! This is a link to: (https://freecatphotoapp.com/)”

But the problem is it is not working but why?

this is still the wrong attribute name

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 (’).

leave it bro there is any problem in website I have searched in google for it but the ans was same you have given at 1st so

Thankyou for the suggestion it will help me a lot I am new to is environment so !

please try again using the correct attribute name

your attribute name spelling is wrong

<a herf="">

This is wrong

<a href=""></a>

Thi is correct

Happy Coding :star_struck:

<REDACTED>

you can use this.