Turn an Image into a Link not working-

Tell us what’s happening:
Can any one suggest me how to " Your a element should be a dead link with a href attribute set to # ."

Your code so far


<h2>CatPhotoApp</h2>
<main>
  <p> Click here to view more <a href="#"> cat photos </a>
  </p>
  <a> <img src="https://bit.ly/fcc-relaxing-cat"alt="A cute orange cat lying on its back." </a>
  <p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
  <p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/turn-an-image-into-a-link

As suggested: remember to use # as your a element’s href property in order to turn it into a dead link.

In order for an element to be a link, it needs to be placed inside an a tag.

Your <img> tag does not have a closing " > " and don’t forget to put an href on your <a> tags

Hi oldfatfool16,

It’s looks like we may just have some syntax issues.

This is an example of an anchor with the word Website

<a href="https://example.com">Website</a>

This is an example of anchor with image with a dead link

<a href="#" ><img src="https://via.placeholder.com/150"></a>

Use the information above to compare with your code.

Thanks,
Ray