Learn HTML by Building a Cat Photo App - Step 15

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>
      <a href="https://freecatphotoapp.com"><a><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 mobile information:

SM-S236DL - Android 14 - Android SDK 34

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

Link to the challenge:

Hi,
You already have an image element. Now wrap it in anchor tag.
– Opening pf anchor tag at the start with reference to new url provided (clicking the picture will take the person there), before the image tag you have already.
– Closing anchor tag will be after the closing image tag.

Let me know if it works.

Remove the extra ‘’ anchor opening tag before img element and add angled > bracket to img element in the end of your alt value.
@Futuristic1789

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