Learn HTML by Building a Cat Photo App - Step 13

Tell us what’s happening:
Describe your issue in detail here.
I don’t know where to add the (target) element and (_blank)to the anchor (a ) element’s opening tag, so that the link opens in a new tab.

  **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 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>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

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

Link to the challenge:

This is the hint provided by the instruction:

Your anchor (a ) element does not have a target attribute. Check that there is a space after the opening tag’s name and/or there are spaces before all attribute names.

Do you know what is anchor (a)?
If yes just simple put the target element = _blank inside it

2 Likes

sir i tried but it dosen’t work can you please tell me where to type that target attribute ?

1 Like

It should be targeted inside here

2 Likes

thank you so much sir for helping me I hope that you will help me again

2 Likes

Will do whenever you have question. Other people in forum will be helping you too.

Best of luck on your journey

1 Like