Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
Describe your issue in detail here.its asking me to add a target attribute with _blank after the anchor

Your code so far

Click here to view more cat photos

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <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>
      <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/107.0.0.0 Safari/537.36 Edg/107.0.1418.35

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

Link to the challenge:

Hi!
In your opening a tag, you only have _ . I believe that there should be a target attribute, set equal to _blank.

its asking me to add a target attribute with _blank in the anchor

Yes. For attributes, inside of the opening tag of the element, you type:
Name of attribute( in this case target)=“value (in this case _blank)”
It’s asking you to put this in the a element, so that text goes in the opening tag of the a element, where you currently have an _. You need to put the name of the attribute, and add the word blank, not just an _.
Hope that helps!

<a attribute="value"> This is how we add an attribute with a specified value. you are supposed to add a target attribute with value _blank

so after the i put _blank

ok so _blank would be the answer

In order to type code in the chat put ``` before and after the code

<p>Click here to view more <a_ blank href="https://freecatphotoapp.com">cat photos</a>.</p>

this is what im doing

im putting _blank after a

are you putting it inside the target attribute?

Before the _blank, you should have target=

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

1 Like