Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
Describe your issue in detail here.

It’s asking me to create a target attribute to open the link up in a new tab? Just getting stuck here

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more <a _blank href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">

Your mobile information:

iPhone - iOS16.5.1

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

Link to the challenge:

Hi there and welcome to our community!

You need to add a target attribute with the value _blank.
The syntax for adding attributes is attribute="value".
You’ve added the value but haven’t included the attribute name.

1 Like

When you add an attribute to an element you need to add both the name of the attribute and its value. The name of the attribute you want to add is target. I don’t see where you added that.

Look at how you added the attribute href as an example.

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