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

**URL:** <https://forum.freecodecamp.org/t/html-12/566544>\
**Category:** General\
**Tags:** chinese-中文\
**Created:** [October 26, 2022, 9:03am UTC](https://forum.freecodecamp.org/t/html-12/566544 "2022-10-26T09:03:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ogfd1](https://avatars.discourse-cdn.com/v4/letter/o/54ee81/32.png) [@ogfd1](https://forum.freecodecamp.org/u/ogfd1)\
**Post date:** [October 26, 2022, 9:03am UTC](https://forum.freecodecamp.org/t/html-12/566544/1 "2022-10-26T09:03:23Z")

</div>

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

**你目前的代码**

```html
<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more cat photos.</p>
      <p> cat photos </p> <a href=https://freecatphotoapp.com></a>
      <a href="https://freecatphotoapp.com">link to cat pictures</a>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
    </main>
  </body>
</html>

```

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

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

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

**挑战的链接：**

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

---

<div class="post-metadata">

**Author:** ![teiResa](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/teiresa/32/289860_2.png) [@teiResa](https://forum.freecodecamp.org/u/teiResa)\
**Post date:** [October 26, 2022, 9:13am UTC](https://forum.freecodecamp.org/t/html-12/566544/2 "2022-10-26T09:13:18Z")

</div>

您只需要一个锚点标签，一个链接以及由所述锚点标签包围的文本“cat photos”。

链接的锚点标签：

```auto
<a href="i_am_the_link.com"> I am the clickable hyperlink </a>

```

结果会像这样：  
[I am the clickable hyperlink](https://freecodecamp.org/)

---

<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:42pm UTC](https://forum.freecodecamp.org/t/html-12/566544/3 "2025-01-07T15:42:08Z")

</div>

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


