Link em uma imagem no html

Olá. Gostaria da ajuda de vocês, estou iniciando nos estudos de frontend.
O que eu poderia estar errando nesse código?? não estou conseguindo avançar!

Ta dando da erro e aparece a mensagem " You should only add one opening anchor (a ) tag. Please remove any extras." mas não consigo ver onde está o erro! Desde já agradeço :slight_smile:

  **Your code so far**
<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>



    <a target="_blank" 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>
  </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/102.0.0.0 Safari/537.36

Challenge: Step 14

Link to the challenge:

You accidentally remove the closing > on the <img> tag.

1 Like

Olá, @vitoria-junker! Boas-vindas ao fórum do freeCodeCamp. A resposta do @bbsmooth, suponho, seja a solução para o problema. Acidentalmente, o > final da tag img foi removido, logo antes da tag de fechamento do elemento a. Espero que isso solucione o problema. Bons estudos! :smiley:

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