Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening: I can’t figure out how to put the target attribute to my anchor a.

Describe your issue in detail here.
I don’t understand where it goes and what to put do I put _blank? or _target? does it go in-between the <a and the href or later?

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more <a 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 browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 14

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

This can happen if you are not quite familiar yet with the terminology used.
Here’s a diagram to some of the most basic terms

+--------------- Element -------------+
|                                     |
+--- Start tag --+         End tag +--+
|                |                 |  |
<p class="saying">live and let live</p>
   |    ||       ||                |
   |    ||       |+-----Content----+
   |    |+-------+
   |    |Attribute
   +----+  Value

The request for this step says:

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.

The key to understand the request is the words attribute and value. As you see in the diagram, attribute is like a variable name that goes inside the starting tag of an element.
You are asked to create one named target with a value content of _blank and place it inside the element <a></a> (remember that attribute goes always only in the starting tag)

Thank you so much! I just started coding so I’m still very much lost.

1 Like