Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
Describe your issue in detail here.
It says my anchor element should have an opening tag but when i look at it it already does. Can you help? Thanks

  **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."></a>
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS aarch64 14816.99.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

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

Link to the challenge:

It’s passing on my end. You may need to reset the code and start again, also your browser and extensions maybe causing and issue.

Hi! Welcome to the forum.

Your code passes for me, you’ve turned the image into a link successfully.

But as shown below the line of code from the previous lesson has been edited to have the link removed. This will cause an error.

<p>Click here to view more cat photos.</p>

Do not edit code outside of the edit box, it isn’t meant to be edited.

You should get an option to reset the code if you fail the lessons enough times by pressing check your code. Then you will have to add your solution again.

1 Like

After I searched so many answers, Yes! !Don’t edit code outside of the edit box, it isn’t meant to be edited.
And the full code should be like:

Then success!

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

The solution has been removed from your post.

This is my first time answering a question, and I’m sorry for not realizing it. At first I was going to help others like me to save time.
it is really good to look for the solving solutions by myself.
For a beginner, it is true that sometimes seeing the answer directly will speed up the efficiency, and I will think again about this contradiction between finding the answer by myself and efficiency.
Thank you for your help.

1 Like