I need to add a target attribute with the value _blank to the anchor (a) element's opening tag, so that the link opens in a new tab

<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.">
    </main>
  </body>
</html>

What, specifically, is your problem?

The instruction for this step is severely lacking. It does not show what a target looks like or explain what to do at all. Just says add a target attribute…

4 Likes

Please don’t spam other people’s posts.

1 Like

Not meant as a spam, just hoping to explain her issue as well as my own so we may get a proper response. The previous comment asked what the problem is, I attempted to explain it.

Can you provide a link to the challenge?

1 Like

I want to add target attribute with the value _blank to the anchor (a) element’s opening tag, so that the link opens in a new tab

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

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