Tell us what’s happening:
Describe your issue in detail here.
it just doesn’t to be working, what should I do
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
<!-- User Editable Region -->
<a><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back." href="https://freecatphotoapp.com."></a>
<!-- User Editable Region -->
</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/109.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 15
Link to the challenge:
Your href is supposed to be inside your opening anchor tag . Take the other link code in the challenge as an example
<a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
I almost quit learning code because of the amount of times this question has been asked. The answer is either deleted by a “MOD,” locked, or too vague. These people asking questions are literally just learning, like myself. I was able to finally find out where I went wrong.
Okay so for this question, it is just like the previous challenge but the [ target=_blank } is not necessary so forget it.
<a href="LINK"> </a>
Put the line of code for the image in the space above ^
Make sure the line of code starts with < and ends with >
<a href="LINK"><img src="LINK" alt="Sample Text"></a>
My mistake was that I didn’t close of the image line of code with > so mine was
"...on its back."< /a> instead of " ...on its back.">< /a>
Okay so for this question, it is just like the previous challenge but the [ target=_blank ] is not necessary for this challenge so use it if you want. The idea is the same either way.
<a href="LINK"> </a>
Put the line of code for the image in the space above ^
Make sure the line of code starts with <
And ends with >
<a href="LINK"><img src="LINK" alt="Sample Text"></a>
My mistake was not closing off the image line of code
"...on its back."</a> instead of " ...on its back."></a>