Learn HTML by Building a Cat Photo App - Step 14

can someone help ,me figure this question out ? What am i supposed to do exactly? Any help would be appreciated
this is my code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

      <p>See more <a _blank href="https://freecatphotoapp.com">cat photos</a> in our gallery.</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; rv:109.0) Gecko/20100101 Firefox/110.0

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

Link to the challenge:

Adding a target attribute is just like adding any other attribute, such as the href attribute you added in the previous steps. Use the href attribute as an example of how to add the target attribute.

I like to think of the attributes as manipulating the tag, the tag we are working with here is the <a></a> which defines a hyperlink

<a href="https://freecatphotoapp.com">cat photos</a> the anchor element is used to link text but the attribute href manipulates it to go to the website. href is the attribute and there can be many placed in the opening tag.

The goal of this step is to add an attribute called “target” to manipulate the link when clicked to open in a new tab by using the value “_blank”

I hope this is helpful

`From my understanding i need to replace href correct?

No href= is an attribute as is target=

Attributes go in the opening tag and you can have more than one.

Here is an example.

<opentag attribute1="value1" attribute2="value2" attribute3="value3">Placeholder text</closetag>

So far you have the value _blank in the opening tag but it won’t do anything unless we tell it to by using an attribute.

The href= attribute is correct it is supposed to be in our code we want to add another attribute called target.

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