Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
Describe your issue in detail here.
I was trying but I can’t, Can somebody help me pleasee

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

<!-- User Editable Region -->

     <a target="_blank" href="https://freecatphotoapp.com">>/a> <img 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/109.0.0.0 Safari/537.36

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

Link to the challenge:

You want to add the target attribute to the link in the p element. You have added a new link around the img and added it there. I would restart the step to get the original HTML back and then only add the attribute to the existing link in the p element. Do not make any other changes.

Hi @Coding_Healthy_Life ,
The closing tag of the second anchor tag is incorrect.
>a/></a>

This is my code but does not pass.

<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>

It is working but don’t let me pass.

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

Which step are you in? Step 14 which this topic is about is for adding a target attribute. So if you are not in step 14 then please open a new topic with the get help button.

Hi @Coding_Healthy_Life ,
In this step, you are asked to add target attribute into the anchor tag and you haven’t added it. That’s the reason for the issue.
So, add a target attribute with the value of _blank

FYI
Adding target with _blank helps to open the web-link in a new tab.

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