通过编写猫咪相册应用学习 HTML - 步骤 15

告诉我们发生了什么:
在此详细描述你的问题。

你目前的代码

<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 -->

      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" <a href= alt= "https://freecatphotoapp.com"> "A cute orange cat lying on its back.</a>">

<!-- User Editable Region -->

    </main>
  </body>
</html>

你的浏览器信息:

用户代理是: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

挑战: 通过编写猫咪相册应用学习 HTML - 步骤 15

挑战的链接:

题目要求用必要的元素标签包裹图片,把它变成一个链接。你需要想想哪个元素是表示图片,以及把它包裹在什么元素里,就成了链接。在上一个问题里,你已经把文字变成过链接了,想想你用的是什么元素。