Tell us what’s happening:
It keeps on saying I’ve omitted the href value or have a typo, I can’t seem to see where I made a problem. I can’t complete the code because I’ve been trying for numerous times to complete it but I’m not getting it right.
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<!-- User Editable Region -->
<p><a> href="https://freecatphotoapp.com"</a></p>
<a href="https://freecatphotoapp.com">link to cat pictures</a>
<!-- 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/110.0.0.0 Safari/537.36 Edg/110.0.1587.57
Challenge: Learn HTML by Building a Cat Photo App - Step 12
This is floating in the middle of nowhere and can’t help your anchor element know what to do.
It looks like you clobbered a lot of text you shouldn’t have. You don’t need to delete anything for this problem. You should only add an opening and closing anchor tag with the correct attributes.
I still don’t understand what to do cause it seems like I did everything you showed in the extract but it still says the same thing, please show me how its done step by step.
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.
I’ve been trying to complete this code for 2 days now and failing each and everytime
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://freecatphotosapp.com"</a> in our gallery.</p>
<a href="https://freecatphotoapp.com">link to cat pictures</a>
<!-- 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/110.0.0.0 Safari/537.36 Edg/110.0.1587.57
Challenge: Learn HTML by Building a Cat Photo App - Step 12