Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
Adding the target attribute. I don’t know where to put it.

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

      <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/117.0.0.0 Safari/537.36

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

Link to the challenge:

You put it the same place you put the href attribute, inside the opening a tag. Just place it after the href attribute (and its value).

Hey buddy this step is telling you to add a target attribute with its value _blank.

We do so, so that if we click on our link then it should be get opened in another tab.

<a href="link" target="value">Coding</a>

Hope you understand.

1 Like

@aofox9 the target is an attribute and its value is _blank.The attribute should apear in the <a> tag.
This is an example of how the target attribute should appear in the <a> tag
<a href="url" target="_blank">

1 Like

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