Tell us what’s happening:
where exactly do i add the target attribute with the value _blank
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/113.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 14
hey so i tried it still doesnt allow, thanks, im not sure if im doing it right… it should be
< a href_blank=“https://freecatphotoapp.com”>cat photos < /a >
right?
Hey, so i tried placing a space between the href and the “_blank” it still doesn’t seem to work
< a href _blank=“https://freecatphotoapp.com”>cat photos< /a>
this is how my code looks right now (well apart from the space between ‘<’ and a and ‘/’
i did that so that you can see it…
It requires having the target= prior to the “_blank”
Sorry for not realizing that was missing sooner.
target= “_blank”
anywhere within the a element should work.