Need help to add a target attribute

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/99.0.4844.74 Safari/537.36 Edg/99.0.1150.46

Challenge: Step 13

Link to the challenge:

Look at the href attribute as a reference, it has quotations and href is the attribute

In this case, you want target as the attribute.

Also, this is not valid HTML for the opening of the anchor tag. Should be lowercased.

how do i include _blank to the anchor?

Have you tried something?

yes

Click here to view more cat photos.

this is where i am at but im not understanding what exactly i have to do

To give you more idea:

<elem 
attribute="attributeValue"
>
<elem/>

I put some spaces for readability, but this is still fine.

This is how you add attribute to an element

In this case, you need target as the attribute and _blank as the attribute value.

thanks
that helped a lot

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