Learn HTML by Building a Cat Photo App - Step 13

Tell us what’s happening:
Describe your issue in detail here.
having a problem understanding where to put my target value _blank in my anchor (a)

  **Your code so far**
     <p>Click here to view more <a href="https://freecatphotoapp.com">cat photos</a>.</p>
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <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 (X11; CrOS x86_64 14909.100.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

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

Link to the challenge:

Where have you tried to put it?

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

I’ve edited your post 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 (').

Either one of those locations will work. What is your code when you put the target attribute there?

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

I’ve edited your post 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 (').

its keeps saying its incorrect and that the anchor element does not have a target attribute

This isn’t how you set an attribute though.

Look at the src, href, and alt attributes. How did you set those attributes equal to a value? You used attribute="value"

Step 13

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.

these were the instructions for step 13. Am i not understanding what its telling me to do?

You only typed _blank. Where is the “Add a target attribute…” part?

do you mean something like <t _blank /t> ?

You need to set the target attribute the same way you set the src, href, and alt attributes - with the syntax attribute="value"

1 Like

im legit brand new at this so my apologies

Everyone is new at some point

Thank you for the help. You were right about what the issue was.

1 Like