Tell us what’s happening:
I am looking to make an image be clickable as a link. I have inserted the anchor (a) or <a herf=“.” img src=<“.” Yet my image still is not clickable and I cannot figure out why. is it the indentation? Am I missing specific characters or is there a typo? I tried as well with target=”_blank” on various attempts with different tweaks but still nothing works. Would love some help if possible. Cheers.
Mere seconds from pressing send and I found the error. it was the extra “<” after src=
I will still post this so hopefully this helps someone !
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 href="https://freecatphotoapp.com"><img src=<"https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."/></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/124.0.0.0 Safari/537.36
Challenge Information:
Learn HTML by Building a Cat Photo App - Step 15