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

**URL:** <https://forum.freecodecamp.org/t/html-9/628473>\
**Category:** General\
**Tags:** chinese-中文\
**Created:** [August 8, 2023, 7:23pm UTC](https://forum.freecodecamp.org/t/html-9/628473 "2023-08-08T19:23:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stella381](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@stella381](https://forum.freecodecamp.org/u/stella381)\
**Post date:** [August 8, 2023, 7:23pm UTC](https://forum.freecodecamp.org/t/html-9/628473/1 "2023-08-08T19:23:25Z")

</div>

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

**你目前的代码**

```html
<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more cat photos in our gallery.</p>

<!-- User Editable Region -->

      <img src="A cute orange cat lying on its back.alt">

<!-- User Editable Region -->

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

```

**你的浏览器信息：**

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

**挑战：** 通过编写猫咪相册应用学习 HTML - 步骤 9

**挑战的链接：**

> **[freeCodeCamp.org](https://www.freecodecamp.org/chinese/learn/2022/responsive-web-design/learn-html-by-building-a-cat-photo-app/step-9)**
>
> 免费学习编程

---

<div class="post-metadata">

**Author:** ![anon86258595](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@anon86258595](https://forum.freecodecamp.org/u/anon86258595)\
**Post date:** [August 8, 2023, 9:02pm UTC](https://forum.freecodecamp.org/t/html-9/628473/2 "2023-08-08T21:02:08Z")

</div>

您想保持圖像原樣而不更改它，因此請嘗試重置您的代碼。 您應該在圖像 src 之後添加一個值為“可愛的貓…”的 alt 語句，以便您的圖像具有描述，如果您的圖像元素存在問題，該描述將會顯示。 像這樣： \<`img` src=“” alt=“”\>

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 7, 2025, 11:47am UTC](https://forum.freecodecamp.org/t/html-9/628473/3 "2025-01-07T11:47:25Z")

</div>


