Learn HTML by Building a Cat Photo App - Step 13

Tell us what’s happening:
Describe your issue in detail here.
I dont know how to add “target” attribute for this task. is there sth wrong here?

  **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>
    <p>Click here to view more <a target="_blank"></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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

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

Link to the challenge:

your 'target is part of your 'href

Hi @khanhngoc646

The question wants you 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.

You did add a target attribute on a different anchor element, but the question wants you to add a target attribute on the existing anchor element.

Adding an attribute to an element simply means that you have to add attribute=“” to the same element.

An element with multiple attributes looks like this

<img src="www.example.com" alt="an example image">

Hope that helps!

Thanks for your help.

It is very helpful and easy to understand. I did understand and passed it. Thanks a lot