Learn HTML by Building a Cat Photo App - Step 14

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

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 _blank ="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 (iPhone; CPU iPhone OS 16_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Mobile/15E148 Safari/604.1

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

Link to the challenge:

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

  • wrong syntax, missing attribute

lets refer to instructions

Add a target attribute with the value _blank to the anchor (a ) element’s opening tag,

  • you nned to use “target” attribute with value of “_blank” in that “anchor” element

i would recommend you to restart this step and simply add that “attribute” with that “value”, and it should be alright, happy learning :slight_smile:

1 Like

I still don’t understand :smiling_face_with_tear::sweat_smile:

I’m not sure where exactly I’m supposed to put the ‘_blank’ at it said opening tag so I assume by the ‘a href’ but it didn’t work I put it with the link but still didn’t work

Hello!
It appears there is a bit of misunderstanding in the target attribute and the _blank value and how to code them.
Viewing the code posted,

I would say you have the right idea. Only a bit of change here. The code as it is posted, shows the href has been separated from its attribute link.
I suggest entering your target attribute, along with the _blank value, before the href.
attributes always = their value, and it is important to remember the quotations around the value.
I hope this helps you!
Happy coding!

target is an html attribute and so is href. It looks like you’re trying to combine the two which is where the issue lies.

So your code should include:

<a href=" " target=" "></a>

I hope this helps better visualize the challenge.

do that for “target” attribute instead, and keep “href” as it is :slight_smile:

1 Like

[quote="igorgetmeabrain, post:2, topic:614552"]
`attribute="value"`.
In this case the `attribute` is `target` and the `value` is `_blank`.
[/quote]

Thank you very much I was able to understand more with your guys help

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