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

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

你目前的代码

<html>
  <body>
    <h1>CatPhotoApp</h1>
    <main>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"</p>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
    </main>
  </body>
</html>

你的浏览器信息:

用户代理是: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

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

挑战的链接:

要求把img标签包裹在a标签当中,使其变成一个超链接,并将给定的URL地址作为href属性的值。

<a 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>
1 Like