Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
Step 14 of Learn HTML requires adding a target with the value blank. It gives no instruction on where in the anchor to add that. I’m stuck. Please help!

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; rv:108.0) Gecko/20100101 Firefox/108.0

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

Link to the challenge:

1 Like

Welcome to our community!

The instruction is: " 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.

In the existing sentence between ‘p’ tags add ‘target’ attribute set to “_blank” value:

<p>Text <a attribute="value" href="url">text</a> text.</p>

‘target’ is an attribute
“_blank” is a value

2 Likes

Thanks! It’s saying to put it at the beginning of the anchor. I put it before the href at first . Then I tried it after the link. When I check the code, it doesn’t work no matter what I do. I Googled it, and Google didn’t help.

It means that you should put the target=“_blank” in the opening ‘a’ tag. The first ‘a’ tag with ‘href’ attribute set to URL is the opening ‘a’ tag.

If it doesn’t work again, try following this instruction:
“Note: Some browser extensions, such as ad-blockers and dark mode extensions can interfere with the tests. If you face issues, we recommend disabling extensions that modify the content or layout of pages, while taking the course.”

It’s still not working. :frowning: I disabled the ad blocker

The hyperlinked part in the sentence looks like this:

<a target="_blank" href="url">

Post your last solution here.

1 Like

It says “photos”; that part just got cropped off with the snipping tool.

Pay attention to where you make blank spaces!

<p>Text <a target="_blank" href="https://freecatphotoapp.com">text</a> text.</p>
1 Like

In step 12 it is shown the different text.

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