通过创建猫咪相册应用学习 HTML - 步骤 15

how to make a href attribute to a cat image?

你目前的代码

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

      *<a target="img" 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>*

<!-- User Editable Region -->

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

你的浏览器信息:

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

Challenge Information:

通过创建猫咪相册应用学习 HTML - 步骤 15

你写的这个 <img> 标签没有闭合,而且你的代码里有 *,这应该去掉。

1 Like

thank you so much~ !!! you are so nice ~ ! problem solved~^^

1 Like