Tell us what’s happening:
Describe your issue in detail here.
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"> Cat photos</a> in our gallery.</p>
<!-- 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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 14
Howdy! Thanks for posting your question on the forum.
Instruction:
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.
Your code:
<p>See more <a href="https://freecatphotoapp.com"> Cat photos</a> in our gallery.</p>
As the instruction states, you’re supposed to add a targetattribute with the value _blank to the a element.
Here’s how to add an attribute to an element, in case you forgot:
<element attribute="value"></element>
As I can see, the only attribute this a element has is the href attribute. You just need to add a target attribute, and give it a value of _blank, like so:
I have edited your post to remove the solution. We appreciate your willing to help answer questions, and help users understand where they are going wrong.
Instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. I appreciate you blurred it out, but even putting it in the blur gives the user the option of just skipping to your solution, and not trying to do it themselves.