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

See more cat photos in our gallery.

<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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36

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

Link to the challenge:

I finding it difficult to add the _blank attribute

Can you show us how you tried to add it?

<p>See more <a_blank href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

 <p>See more <a_blank href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

You turned the a element into an a_blank element, but that’s not a real thing.

You instead need to add a target attribute with a value of _blank, like you have an href attribute or src attribute or alt attribute.

Alright,
I am trying that right away.
I won’t give up!

I am still finding it difficult

Please post your latest code

<p>See more <a href="https://freecatphotoapp.com"_blank>cat photos</a> in our gallery.</p>
<p>See more <a href="https://freecatphotoapp.com"_blank>cat photos</a> in our gallery.</p>

You have not written target anywhere. Since you are asked to create a target attribute, you will need to type target somewhere.

href attribute

src attribute

Look at these two. How do the look different than what you wrote? You add a target attribute like the href or src attribute.

 <p>See more <a href="https://freecatphotoapp.com"<a _blank="https:freecatphotoapp.com">cat photos</a> in our gallery.</p>

what could be my mistake ?

You still have not written target anywhere.

I would reset the code.

Then I would stop and review what an attribute is

To write an attribute, you must write the attribute name, target

To set an attribute equal to a value, you must use an =

You should look look at the three examples of an attribute you have written. Every single one of your attributes has the format attribute="value"

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