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

**URL:** <https://forum.freecodecamp.org/t/html-16/576444>\
**Category:** General\
**Tags:** chinese-中文\
**Created:** [December 7, 2022, 9:23am UTC](https://forum.freecodecamp.org/t/html-16/576444 "2022-12-07T09:23:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiqina](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/chiqina/32/295831_2.png) [@chiqina](https://forum.freecodecamp.org/u/chiqina)\
**Post date:** [December 7, 2022, 9:23am UTC](https://forum.freecodecamp.org/t/html-16/576444/1 "2022-12-07T09:23:44Z")

</div>

**告诉我们发生了什么：**  
在此详细描述你的问题。  
不知道是哪里出了问题，我注释了h2也加了section标签了，因为发帖只能放两个链接我这边删掉了一个[cat photos](https://freecatphotoapp.com)  
**你目前的代码**

# CatPhotoApp

```
    <p>Click here to view more .</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>
</main>

```

```html
<html>
  <body>

    <main>
      <h1>CatPhotoApp</h1>
      <!-- <h2>Cat Photos</h2> -->
      <!-- TODO: Add link to cat photos -->
      <section>
        <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>
    </main>

  </body>
</html>

```

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

用户代理是： `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36`

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

**挑战的链接：**

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

---

<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:** [December 7, 2022, 9:42am UTC](https://forum.freecodecamp.org/t/html-16/576444/2 "2022-12-07T09:42:10Z")

</div>

为什么你的 `<h2>Cat Photos</h2>` 是被注释掉的呢？

题目要求把 h2 元素、注释、p 元素、锚点 a 元素放在 section 元素里，你现在是把 h2 注释了，把 p 元素、a 元素放在 section 里的。

题目要求中的注释是指这个 `<!-- TODO: Add link to cat photos -->`

---

<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-16/576444/3 "2025-01-07T15:41:47Z")

</div>

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


