Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a href="https://freecatphotoapp.com"_blank>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.">
**Your browser information:**
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36 Edg/102.0.1245.33
Challenge: Step 13
Link to the challenge:
You have already added an attribute/value to the link, the
href attribute to be exact. Adding a
target attribute works the same way.
Ok, thanks, yet when trying it says that my (a) element does not have a target attribute even though the line is
Click here to view more cat photos.
and saying that I should add a target attribute with value _blank to the anchor (a) element’s opening tag, so that the link opens in a new tab
When you want to paste code in these forums you need to wrap it in triple back ticks. Type three back ticks on a line of their own, then below that line paste your code, then on a separate line below your code type three more back ticks. The back tick on my keyboard is located in the upper left just above the Tab key and below Esc.
within the < a > tags make sure you have target="_blank" after the URL
The order of the attributes doesn’t matter. I think most of us just naturally put the
href first since that is the most important part of the link. But they can go in any order.
I learn something new every day!
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.