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

**URL:** <https://forum.freecodecamp.org/t/html-47/575466>\
**Category:** General\
**Tags:** chinese-中文\
**Created:** [December 2, 2022, 11:14am UTC](https://forum.freecodecamp.org/t/html-47/575466 "2022-12-02T11:14:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![3059544834](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/3059544834/32/250038_2.png) [@3059544834](https://forum.freecodecamp.org/u/3059544834)\
**Post date:** [December 2, 2022, 11:14am UTC](https://forum.freecodecamp.org/t/html-47/575466/1 "2022-12-02T11:14:00Z")

</div>

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

**你目前的代码**

```html
<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <section>
        <h2>Cat Photos</h2>
        <!-- TODO: Add link to cat photos -->
        <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
        <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>
      </section>
      <section>
        <h2>Cat Lists</h2>
        <h3>Things cats love:</h3>
        <ul>
          <li>cat nip</li>
          <li>laser pointers</li>
          <li>lasagna</li>
        </ul>
        <figure>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="A slice of lasagna on a plate.">
          <figcaption>Cats <em>love</em> lasagna.</figcaption>  
        </figure>
        <h3>Top 3 things cats hate:</h3>
        <ol>
          <li>flea treatment</li>
          <li>thunder</li>
          <li>other cats</li>
        </ol>
        <figure>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg" alt="Five cats looking around a field.">
          <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
        </figure>
      </section>
      <section>
        <h2>Cat Form</h2>
        <form action="https://freecatphotoapp.com/submit-cat-photo">
      <label><input id="indoor" type="radio"> Indoor</label>
      

          <input type="text" name="catphotourl" placeholder="cat photo URL" required>
          <button type="submit">Submit</button>
        </form>
      </section>
    </main>
  </body>
</html>

```

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

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

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

**挑战的链接：**

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

---

<div class="post-metadata">

**Author:** ![aynuman19](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/aynuman19/32/331188_2.png) [@aynuman19](https://forum.freecodecamp.org/u/aynuman19)\
**Post date:** [December 2, 2022, 11:41am UTC](https://forum.freecodecamp.org/t/html-47/575466/2 "2022-12-02T11:41:58Z")

</div>

只需复制标签行中的所有代码并将其粘贴到下面的新行中，然后将 id 更改为 outdoor（‘o’ 很小）并将文本更改为 Outdoor。

---

<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, 3:41pm UTC](https://forum.freecodecamp.org/t/html-47/575466/3 "2025-01-07T15:41:49Z")

</div>

Closed on January 7, 2025, 3:41pm UTC


