Where do I put this _blank (target attribute) in the code?

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36 Edg/101.0.1210.53

Challenge: Step 13

Link to the challenge:

Inside a href attribute

In HTML there is elements, attributes, and values. These three concepts will be mentioned a lot throughout the course and knowing what they are will help you describe things better as well.

So, what is an element? Well, an element is the commonly used things such as <body>, <p> or <section>. These and anything like them are known as elements.

Attributes are what we place inside of elements to add more to our code whether its for screen readers, search engines, or anything else. These are things like id, class or name.

Then lastly, values. The values are applied to the attributes like so: id="example-id", class="example-class" or name="example-name".

<a href="https://freecatphotoapp.com">cat photos</a>
i just don’t understand where in this sequence it goes

<p>Click here to view more <a 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 (’).

HI @cgbill97 !

Welcome to the forum!

This is the opening anchor tag

<a href="https://freecatphotoapp.com">

the target attribute goes inside there

Hope that helps!

To be more clear on this I will provide some examples:

<p id="example-id">This is a <p> element with the attribute of id and value of "example-id".</p>
<section class="example-class">This is a <section> element with the attribute of class and value of "example-class"

Hopefully these two examples provide more explanation for you on this topic.

cat photos

hello @jwilkins.oboe !
what is a target attribute and where inside the opening tag should i put it in?
thank you in advance :blush:

HI @ashreezer !

I replied to your post with a short article that shows you how to add the target attribute.
Please take a look at the article, I sent you :slight_smile:
If you have further questions, let me know.

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