Learn HTML by Building a Cat Photo App - Step 14 - i7TvAI_WUAUVkU2EShBQ2

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
  I turn the image into a link.

it keep on telling me Your anchor (a) element should have an opening tag. Opening tags have this syntax: <elementName>.

<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
    <img <a href="https://freecatphotoapp.com" 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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 14

Link to the challenge:

You need to nest <img> inside a <a> element. Right now, you got your <a> inside <img> and both seem not to have their closing tags.

How do i close the tags, please just show me the answer directly am confused.

Oh thanks i just figure it out. Your solution did help, thanks again.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.