Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
What’s my problem here?

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <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>
     <a <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" href="https://freecatphotoapp.com">A cute orange cat lying on its back<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/106.0.0.0 Safari/537.36

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

Link to the challenge:

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 you say, the more we can help!

This is not a valid opening anchor tag

This is not a valid closing anchor tag

This is not a correct img element

In the tasks before this elements goes through

I don’t understand what you are saying. Can you clarify?

I must turn the img element intro a link with by surrounding it with a href value. But when I write my code, the hints says that I should add an img element with a src value inside, but I done this in my code. I don’t know how to continue.

No, you have not.

Did you read this post I wrote about the errors you made? Do you have questions about what I said?

Sorry for my bad english, it’s not my main language. I used these tags you mentioned in the message already in tasks before step 15 and they’re going through. And when they are wrong, what are the correct forms of this tags when I can ask?

Did you change anything at all in your code?

This is not a correct way to write an opening anchor tag.

This is not a correct way to write an img element.

This is not a correct way to write a closing anchor tag.


Did you change these at all? They must be fixed.

This is an example of a correct opening anchor tag.

This is an example of a correct closing anchor tag.

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

I changed the code through this, but the hint says now, that my anchor needs an opening tag. I don’t know what I should do

This is not a correct img element. You must not change or break the img element in any way.

This anchor element is valid but in does not have an img element inside (between the opening and closing anchor tags).

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