通過編寫貓咪相冊應用學習 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"> <href>alt="A cute orange cat lying on its back."</href>

<!-- User Editable Region -->

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

你的瀏覽器信息:

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

挑戰: 通過編寫貓咪相冊應用學習 HTML - 步驟 15

挑戰的鏈接:

您好,欢迎来到论坛,请描述您的问题,以便我们可以提供帮助。

您已经将 href 用作元素而不是将其用作属性,href 是指向值的属性,在大多数情况下该值是一个链接。

锚元素应该采用这种结构 <a href="" target="_blank"></a>