How do I add a target attribute to existing element

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

  **Your code so far**

    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more <a href="">cat photos</a>.</p>
    <img src="" alt="A cute orange cat lying on its back.">
  **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.67 Safari/537.36

Challenge: Step 13

Link to the challenge:

just follow along what is in instructions and it should be fine!!

welcome to fcc forum btw :slight_smile:

Add your target attribute inside ( a ) element opening tag with a value _blank


can you please write it out for me to view?
i still dont understand…thanks

The target attribute is added just like every other attribute. It is used for opening a link in a new tab.

You can add the target attribute with the value “_blank” just like the href attribute.

kindly show me where/how the target attribute is added in the anchor element below:

<p>Click here to view more <a href= "">cat photos</a></p>

The target attribute is just like every other attribute.

You can look at this documentation for more info about the target attribute:

thanks a bunch. Finaly got it

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