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

**URL:** <https://forum.freecodecamp.org/t/html-47/633885>\
**Category:** General\
**Tags:** chinese-中文\
**Created:** [August 30, 2023, 9:23am UTC](https://forum.freecodecamp.org/t/html-47/633885 "2023-08-30T09:23:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![suejack](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@suejack](https://forum.freecodecamp.org/u/suejack)\
**Post date:** [August 30, 2023, 9:23am UTC](https://forum.freecodecamp.org/t/html-47/633885/1 "2023-08-30T09:23:43Z")

</div>

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

**你目前的代码**

```html
<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <section>
        <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>
        <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">

<!-- User Editable Region -->

          <label>
                <input id="indoor" type="radio"> Indoor
                 <input id="outdoor" type="radio"> Outdoor
          </label>

<!-- User Editable Region -->

          <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 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.5359.125 Safari/537.36`

**挑战：** 通过编写猫咪相册应用学习 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:** ![miya](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/miya/32/417705_2.png) [@miya](https://forum.freecodecamp.org/u/miya)\
**Post date:** [August 30, 2023, 12:44pm UTC](https://forum.freecodecamp.org/t/html-47/633885/2 "2023-08-30T12:44:29Z")

</div>

你写第二个 input 元素的方式是对的，但是第二个 input 元素应该被放在第二个 label 元素中，而不是放在第一个 label 元素中。

---

<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:41am UTC](https://forum.freecodecamp.org/t/html-47/633885/3 "2025-01-07T11:41:13Z")

</div>

Closed on January 7, 2025, 11:41am UTC


