Tell us what’s happening:
Step 14 of Learn HTML requires adding a target with the value blank. It gives no instruction on where in the anchor to add that. I’m stuck. Please help!
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; rv:108.0) Gecko/20100101 Firefox/108.0
Challenge: Learn HTML by Building a Cat Photo App - Step 14
Thanks! It’s saying to put it at the beginning of the anchor. I put it before the href at first . Then I tried it after the link. When I check the code, it doesn’t work no matter what I do. I Googled it, and Google didn’t help.
It means that you should put the target=“_blank” in the opening ‘a’ tag. The first ‘a’ tag with ‘href’ attribute set to URL is the opening ‘a’ tag.
If it doesn’t work again, try following this instruction:
“Note: Some browser extensions, such as ad-blockers and dark mode extensions can interfere with the tests. If you face issues, we recommend disabling extensions that modify the content or layout of pages, while taking the course.”