There is vague instruction that the “target” tag opens in a new tab, but no more explanation on where to put it. It just tells you to put it there. Help please? Thanks.
This is where I’m at:
Add a target attribute with the value _blank to the anchor (a) element’s opening tag, so that the link opens in a new tab.
Not quite sure where to insert < target >, or the value ‘_blank’. I’ve tried various locations and it still comes up incorrect.
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<!-- User Editable Region -->
<p>See more <a href="https://freecatphotoapp.com"><target=_blank>cat photos</a> in our gallery.</p></target>
<!-- User Editable Region -->
<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:121.0) Gecko/20100101 Firefox/121.0
You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!
I’m not sure what that means, that i didn’t edit the template. It automatically posted the code and I typed the question. It seemed relevant. And i got an answer and solved the problem. Please explain what you mean by “didn’t edit the template”. Thank you.