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."
But I don’t even know where to insert “_blank”. It doesn’t provide an example.
I don’t even understand what they mean by target.
Please help.
My code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>See more <a href="https://freecatphotoapp.com">cat photos </a> in our gallery.</p>
<!-- 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/118.0.0.0 Safari/537.36
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!
Thank you for including both the code and the problem!
If you notice how the href attribute and its value "https://freecatphotoapp.com" have been added to the anchor, this is the same way to add the target attribute and its value "_blank"
I suggest adding it behind the a and before the href, leaving a space before and after the entered code.
Example: <a attribute="value" href="value>text</a>
I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.